We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 65b284c commit d93fae7Copy full SHA for d93fae7
1 file changed
installer.sh.in
@@ -839,8 +839,8 @@ configure_wifi() {
839
"SSID:" 1 1 "" 1 16 30 0 \
840
"Encryption:" 2 1 "" 2 16 4 3 \
841
"Password:" 3 1 "" 3 16 63 0 || return 1
842
- set -- $(cat $ANSWER)
843
- ssid="$1"; enc="$2"; pass="$3";
+ readarray -t values <<<$(cat $ANSWER)
+ ssid="${values[0]}"; enc="${values[1]}"; pass="${values[2]}"
844
845
if [ -z "$ssid" ]; then
846
DIALOG --msgbox "Invalid SSID." ${MSGBOXSIZE}
0 commit comments