From c928097412b3aa146b709b7ed1b85e307a787b11 Mon Sep 17 00:00:00 2001 From: Stacy Harper Date: Fri, 18 Jun 2021 10:38:39 +0200 Subject: [PATCH] Allow the user to force an invalid phone number It is usefull for some provider dedicated short phone numbers as 666, 123 or whatever. --- scripts/core/sxmo_contactmenu.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/scripts/core/sxmo_contactmenu.sh b/scripts/core/sxmo_contactmenu.sh index b4ab0ed..d2d918d 100755 --- a/scripts/core/sxmo_contactmenu.sh +++ b/scripts/core/sxmo_contactmenu.sh @@ -16,6 +16,13 @@ valid_number() { fi 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 }