]> xenbits.xensource.com Git - people/royger/freebsd.git/commitdiff
It's completely pointless to replace newlines with space
authordteske <dteske@FreeBSD.org>
Tue, 13 Dec 2016 02:56:52 +0000 (02:56 +0000)
committerdteske <dteske@FreeBSD.org>
Tue, 13 Dec 2016 02:56:52 +0000 (02:56 +0000)
(this is done automatically for you upon shell expansion)

usr.sbin/bsdinstall/scripts/wlanconfig

index dc87dbd5ef07a2ff1715e547c4609159b8865650..b7b150bd75ff12f39f70f4c1ccfc731e80324252 100755 (executable)
@@ -219,7 +219,6 @@ while :; do
 
        f_dialog_title "Network Selection"
        prompt="Select a wireless network to connect to."
-       menu_list=$( echo $NETWORKS | tr '\n' ' ' )
        f_dialog_menu_size height width rows "$DIALOG_TITLE" \
                "$DIALOG_BACKTITLE" "$prompt" "" $menu_list
        NETWORK=$( eval $DIALOG \
@@ -229,7 +228,7 @@ while :; do
                --extra-label \"Rescan\"           \
                --menu \"\$prompt\"                \
                $height $width $rows               \
-               $menu_list                         \
+               $NETWORKS                          \
                2>&1 >&$DIALOG_TERMINAL_PASSTHRU_FD
        )
        retval=$?