Skip to content

Commit

Permalink
fix: command for special char handling
Browse files Browse the repository at this point in the history
  • Loading branch information
AlvinSchiller committed Apr 15, 2024
1 parent 75dea7a commit e4dc2a4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scripts/helperscripts/inc.networkHelper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ add_wireless_network() {
local wpa_network_with_dummy_psk=$(wpa_passphrase "$ssid" "dummypsk")
if echo "$wpa_network_with_dummy_psk" | grep -qF 'network='; then
local wpa_network=$(echo "$wpa_network_with_dummy_psk" | sed -e '/#psk/d' -e "s/psk=.*$/psk=${pass}/" -e "/^}/i\\\tpriority=${prio}" )
sudo bash -c "echo '${wpa_network}' >> $WPA_CONF"
echo "${wpa_network}" | sudo tee -a "$WPA_CONF" > /dev/null
fi
fi
fi
Expand Down
2 changes: 1 addition & 1 deletion scripts/helperscripts/setup_autohotspot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ _install_autohotspot_dhcpcd() {
fi

if [[ ! $(grep -w "${dhcpcd_conf_nohook_wpa_supplicant}" ${dhcpcd_conf}) ]]; then
sudo bash -c "echo ${dhcpcd_conf_nohook_wpa_supplicant} >> ${dhcpcd_conf}"
echo "${dhcpcd_conf_nohook_wpa_supplicant}" | sudo tee -a "${dhcpcd_conf}" > /dev/null
fi

# create service to trigger hotspot
Expand Down

0 comments on commit e4dc2a4

Please sign in to comment.