diff options
author | Jim Pryor <profjim@jimpryor.net> | 2009-08-11 14:05:16 +0200 |
---|---|---|
committer | James Rayner <james@archlinux.org> | 2009-08-15 04:28:31 +0200 |
commit | 09a2212f344e5bdf7573584a9b8ef5b64c7b1fac (patch) | |
tree | ea813dcebf776401161a6fc3b4761710b2a0d2e2 /src/netcfg-menu | |
parent | 07aa8f784896ba97914f4b2a71d2ba6c0047cb07 (diff) | |
download | netctl-09a2212f344e5bdf7573584a9b8ef5b64c7b1fac.tar.gz netctl-09a2212f344e5bdf7573584a9b8ef5b64c7b1fac.tar.xz |
quotes!
Signed-off-by: Jim Pryor <profjim@jimpryor.net>
Diffstat (limited to 'src/netcfg-menu')
-rw-r--r-- | src/netcfg-menu | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/netcfg-menu b/src/netcfg-menu index 1d740fb..21b5651 100644 --- a/src/netcfg-menu +++ b/src/netcfg-menu @@ -12,8 +12,8 @@ while read prof; do # if there is a profile called "main", Use as default [ "$prof" = "main" ] && DEFAULT=$prof unset DESCRIPTION # JP: we can''t sandbox the sourced profiles, because we need to expose profiles[] - . $PROFILE_DIR/$prof - profiles[$i]=$prof + . "$PROFILE_DIR/$prof" + profiles[$i]="$prof" i=$((i+1)) profiles[$i]="$DESCRIPTION" # JP: this will usually have spaces and must be quoted i=$((i+1)) @@ -25,7 +25,7 @@ fi [ "$NETWORKS_MENU_DEFAULT" ] && DEFAULT="$NETWORKS_MENU_DEFAULT" # if no default yet, use the first entry -[ "$DEFAULT" = "" ] && DEFAULT=${profiles[0]} +[ "$DEFAULT" = "" ] && DEFAULT="${profiles[0]}" ANSWER=$(mktemp /tmp/menu.XXXXXXXX) || exit 1 # Set timeout @@ -36,9 +36,9 @@ else fi # Display Dialog -dialog --timeout $TIMEOUT --default-item $DEFAULT \ +dialog --timeout "$TIMEOUT" --default-item "$DEFAULT" \ --menu "Select the network profile you wish to use" \ - 13 50 6 "${profiles[@]}" 2>$ANSWER + 13 50 6 "${profiles[@]}" 2> $ANSWER ret=$? |