vdotfiles

Cem's Dotfiles for Void Linux
git clone git://git.ckyln.com/vdotfiles.git
Log | Files | Refs | Submodules | README | LICENSE

commit 6d0c9da19c5907e6cd4d6110c857dec5a106357a
parent cd5bdc3fcff752aecef97340cbc5467af46cc55c
Author: Cem Keylan <cem@ckyln.com>
Date:   Wed,  8 Jan 2020 19:20:13 +0300

wpa_add_network: fix formatting issues

Diffstat:
M.local/bin/wpa_add_network | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/.local/bin/wpa_add_network b/.local/bin/wpa_add_network @@ -6,7 +6,7 @@ if [ "$(tty)" = "not a tty" ]; then printf "tty" else getvalue() { - printf "$1\n" + printf "$1 " read VALUE } prompt() { @@ -23,11 +23,11 @@ fi [ -z "$SSID" ] && exit 1 if prompt "Is the network password protected?" ; then - getvalue "Enter the password" + getvalue "Enter the password:" PASSWORD="$VALUE" [ -z "$PASSWORD" ] && exit 1 wpa_passphrase "$SSID" "$PASSWORD" | sudo tee -a /etc/wpa_supplicant/wpa_supplicant.conf else - printf "network={\n ssid=$SSID\n keymgmt=NONE\n priority=-999\n }\n" | \ + printf "network={\n ssid=$SSID\n keymgmt=NONE\n priority=-999\n }\n" | \ sudo tee -a /etc/wpa_supplicant/wpa_supplicant.conf fi