Allow the user to force an invalid phone number
It is usefull for some provider dedicated short phone numbers as 666, 123 or whatever.
This commit is contained in:
parent
469f7cbd13
commit
c928097412
1 changed files with 7 additions and 0 deletions
|
@ -16,6 +16,13 @@ valid_number() {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
notify-send "\"$1\" is not a valid phone number"
|
notify-send "\"$1\" is not a valid phone number"
|
||||||
|
|
||||||
|
PICKED="$(printf "Ok\nUse as it is\n" | dmenu -c -l 2 -p "Invalid Number")"
|
||||||
|
if [ "$PICKED" = "Use as it is" ]; then
|
||||||
|
echo "$1"
|
||||||
|
return
|
||||||
|
fi
|
||||||
|
|
||||||
exit
|
exit
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue