diff options
author | Jim Pryor <profjim@jimpryor.net> | 2009-08-11 18:49:08 +0200 |
---|---|---|
committer | James Rayner <james@archlinux.org> | 2009-09-07 12:04:04 +0200 |
commit | 6b0c686613a26541ce3164d9e995f639ef3a9b9f (patch) | |
tree | 67b2d4e8d1fa500752be8c657491afe2bb9db14b /src/netcfg-menu | |
parent | 6e369d4a1e082be88c3e8132477452c2dda3cf0e (diff) | |
download | netctl-6b0c686613a26541ce3164d9e995f639ef3a9b9f.tar.gz netctl-6b0c686613a26541ce3164d9e995f639ef3a9b9f.tar.xz |
Comments, more harmless bits
Signed-off-by: Jim Pryor <profjim@jimpryor.net>
Diffstat (limited to 'src/netcfg-menu')
-rw-r--r-- | src/netcfg-menu | 4 |
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 ;; |