summaryrefslogtreecommitdiffstats
path: root/src/netcfg-menu
diff options
context:
space:
mode:
Diffstat (limited to 'src/netcfg-menu')
-rw-r--r--src/netcfg-menu4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/netcfg-menu b/src/netcfg-menu
index 2736ee1..b24455c 100644
--- a/src/netcfg-menu
+++ b/src/netcfg-menu
@@ -10,7 +10,7 @@ i=0
# JP: change for prof to while read prof to avoid assumption that profile names are always single tokens (no spaces etc.)
while read prof; do
# if there is a profile called "main", Use as default
- [ "$prof" = "main" ] && DEFAULT="main"
+ [[ "$prof" = "main" ]] && DEFAULT="main"
unset DESCRIPTION # JP: we can''t sandbox the sourced profiles, because we need to expose profiles[]
. "$PROFILE_DIR/$prof"
profiles[$i]="$prof"
@@ -50,7 +50,7 @@ case $ret in
if [[ $ret -eq 0 ]]; then echo "$DEFAULT" > "$STATE_DIR/menu"; fi
;;
0) # User selection
- profile_up "$(cat "$ANSWER")"
+ profile_up $(cat "$ANSWER")
ret=$?
if [[ $ret -eq 0 ]]; then mv "$ANSWER" "$STATE_DIR/menu"; fi
;;