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 <contact@stacyharper.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
master
Stacy Harper 4 years ago committed by Maarten van Gompel
parent ed220b34d7
commit cc81deeb10
  1. 1
      scripts/core/sxmo_contactmenu.sh

@ -16,6 +16,7 @@ valid_number() {
newcontact() { newcontact() {
name="$(echo | sxmo_dmenu_with_kb.sh -c -l 2 -p "$icon_usr Name")" name="$(echo | sxmo_dmenu_with_kb.sh -c -l 2 -p "$icon_usr Name")"
number=
while [ -z "$number" ]; do while [ -z "$number" ]; do
number="$(echo | sxmo_dmenu_with_kb.sh -c -l 2 -p "$icon_phl Number")" number="$(echo | sxmo_dmenu_with_kb.sh -c -l 2 -p "$icon_phl Number")"
number="$(valid_number "$number")" number="$(valid_number "$number")"

Loading…
Cancel
Save