Skip to content

Commit d93fae7

Browse files
axtlossclassabbyamp
authored andcommitted
installer: allow spaces in ssid and password
1 parent 65b284c commit d93fae7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

installer.sh.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -839,8 +839,8 @@ configure_wifi() {
839839
"SSID:" 1 1 "" 1 16 30 0 \
840840
"Encryption:" 2 1 "" 2 16 4 3 \
841841
"Password:" 3 1 "" 3 16 63 0 || return 1
842-
set -- $(cat $ANSWER)
843-
ssid="$1"; enc="$2"; pass="$3";
842+
readarray -t values <<<$(cat $ANSWER)
843+
ssid="${values[0]}"; enc="${values[1]}"; pass="${values[2]}"
844844

845845
if [ -z "$ssid" ]; then
846846
DIALOG --msgbox "Invalid SSID." ${MSGBOXSIZE}

0 commit comments

Comments
 (0)