aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/mbsync.sh2
-rwxr-xr-xbin/wlan2
2 files changed, 3 insertions, 1 deletions
diff --git a/bin/mbsync.sh b/bin/mbsync.sh
index 75ed9a9..363d726 100755
--- a/bin/mbsync.sh
+++ b/bin/mbsync.sh
@@ -6,5 +6,5 @@
#pkill mbsync &>/dev/null
# runs mbsync and writes the output to a file
-mbsync -a
+mbsync -a
exit 0
diff --git a/bin/wlan b/bin/wlan
index d8f3e4e..a5da901 100755
--- a/bin/wlan
+++ b/bin/wlan
@@ -4,6 +4,8 @@
wlan() {
station="$(iwctl device list | grep station | awk ' { print $1 } ')"
essid="$(iwgetid | sed -e 's/ESSID://g' -e 's/\"//g' -e "s:$station::g" -e 's/^\W*/ /g')"
+
+# [ -n "$essid" ] || [ -z "$essid" ] && essid=' no link'
printf "%s" "$essid"
}