Fix for shellcheck problem and whitespace issue as suggested by Reed Wade (also stripping trailing spaces)

Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
This commit is contained in:
Maarten van Gompel 2020-11-01 14:14:57 +01:00
parent 0f685fa3a4
commit f0d40f28fc

View file

@ -54,7 +54,7 @@ addnetworkgsmmenu() {
addnetworkwpamenu() {
SSID="$(
nmcli d wifi list | tail -n +2 | grep -v '^*' | awk '{ print $2 }' | grep -v '\-\-' |
nmcli d wifi list | tail -n +2 | grep -v '^\*' | awk -F' ' '{ print $6 }' | grep -v '\-\-' |
xargs -0 printf 'Close Menu\n%s' |
sxmo_dmenu_with_kb.sh -c -p "Add WPA: SSID" -fn "Terminus-20" -l 20
)"