From cc81deeb104ebbb8a4e1723041894db81363abcb Mon Sep 17 00:00:00 2001 From: Stacy Harper Date: Sat, 15 May 2021 18:27:00 +0200 Subject: [PATCH] fix a bug when you add a contact after edition The number variable was already used so it is not empty where we need it to be. Signed-off-by: Stacy Harper Signed-off-by: Maarten van Gompel --- scripts/core/sxmo_contactmenu.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/core/sxmo_contactmenu.sh b/scripts/core/sxmo_contactmenu.sh index 61806c9..5646db7 100755 --- a/scripts/core/sxmo_contactmenu.sh +++ b/scripts/core/sxmo_contactmenu.sh @@ -16,6 +16,7 @@ valid_number() { newcontact() { name="$(echo | sxmo_dmenu_with_kb.sh -c -l 2 -p "$icon_usr Name")" + number= while [ -z "$number" ]; do number="$(echo | sxmo_dmenu_with_kb.sh -c -l 2 -p "$icon_phl Number")" number="$(valid_number "$number")"