Put 'wifiName' variable used by 'nmcli' command inside double quotes
This commit is contained in:
2
wifi.sh
2
wifi.sh
@@ -37,7 +37,7 @@ nmcli device wifi list
|
|||||||
printf "Enter the SSID of the WiFi network you wish to connect to:\n"
|
printf "Enter the SSID of the WiFi network you wish to connect to:\n"
|
||||||
read -r wifiName
|
read -r wifiName
|
||||||
|
|
||||||
nmcli --ask device wifi connect ${wifiName}
|
nmcli --ask device wifi connect "${wifiName}"
|
||||||
|
|
||||||
cat << EOF
|
cat << EOF
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user