replace double quotes with single quote

This commit is contained in:
Tobias Powalowski 2022-12-13 20:39:32 +01:00
parent b8cdbc5d91
commit 4b6a493e53

View file

@ -54,11 +54,11 @@ do_wireless() {
# expect hidden network has a WLAN_KEY
#shellcheck disable=SC2143
if ! [[ "$(iwctl station "${INTERFACE}" get-networks | grep -w "${WLAN_SSID}" | cut -c 42-49 | grep -q 'open')" ]] || [[ "${WLAN_CONNECT}" == "connect-hidden" ]]; then
DIALOG --inputbox "Enter your KEY for SSID=\"${WLAN_SSID}\"" 8 50 "SecretWirelessKey" 2>"${ANSWER}" || return 1
DIALOG --inputbox "Enter your KEY for SSID=\'${WLAN_SSID}\'" 8 50 "SecretWirelessKey" 2>"${ANSWER}" || return 1
WLAN_KEY=$(cat "${ANSWER}")
fi
# time to connect
DIALOG --infobox "Connection to SSID=\"${WLAN_SSID}\" with ${INTERFACE} ..." 3 70
DIALOG --infobox "Connection to SSID=\'${WLAN_SSID}\' with ${INTERFACE} ..." 3 70
printk off
if [[ -z "${WLAN_KEY}" ]]; then
iwctl station "${INTERFACE}" "${WLAN_CONNECT}" "${WLAN_SSID}" > /dev/null 2>&1 && WLAN_AUTH="1"