style: fix indentation

This commit is contained in:
AngeD 2023-04-18 14:44:09 +02:00
parent 8a95534bc6
commit 4a2276dbee
4 changed files with 6 additions and 6 deletions

@ -1 +1 @@
Subproject commit f27d192eb20cbf9cf690a372f342110b7347c8d6
Subproject commit 045f006c50d782a6d3acbd8a07d1595322ff7e43

@ -1 +1 @@
Subproject commit b4f9698733d7b29cc495e649e26fd6c3a5dcfcae
Subproject commit 673b9fc3317d48a169fe612575186b3eb1a42a13

Binary file not shown.

View File

@ -1,12 +1,12 @@
#!/bin/bash -e
readarray -t NET <<< \
"$(nmcli -f SSID,CHAN,RATE,SIGNAL,BARS,SECURITY dev wifi list \
| awk '!seen[$1]++')"
if [ -n "$1" ]; then
nmcli device wifi con "$1"
else
readarray -t NET <<< \
"$(nmcli -f SSID,CHAN,RATE,SIGNAL,BARS,SECURITY dev wifi list \
| awk '!seen[$1]++')"
COLUMNS=1
select net in "${NET[@]}"; do
nmcli device wifi con "$(awk '{print $1}' <<< "$net")" && break