Allow the user to force an invalid phone number

It is usefull for some provider dedicated short phone numbers as 666,
123 or whatever.
master
Stacy Harper 3 years ago
parent 469f7cbd13
commit c928097412
No known key found for this signature in database
GPG Key ID: 5BAC92328B7C5D65
  1. 7
      scripts/core/sxmo_contactmenu.sh

@ -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…
Cancel
Save