summaryrefslogtreecommitdiff
path: root/.scripts/wifi-captive-login
diff options
context:
space:
mode:
authorSaumit Dinesan <justsaumit@protonmail.com>2022-09-01 23:26:09 +0530
committerSaumit Dinesan <justsaumit@protonmail.com>2022-09-01 23:26:09 +0530
commitd8f4c148def958ea9085eaa0a79930dcaa55c391 (patch)
treea8b5b946041b14b0f1cad4c83d3416ad63141e4e /.scripts/wifi-captive-login
parentdfff78a2e0ec69e60cfb267ae071eb3c602cece3 (diff)
fixing wifi-captive on empty var + neofetch ascii tab
Diffstat (limited to '.scripts/wifi-captive-login')
-rwxr-xr-x.scripts/wifi-captive-login2
1 files changed, 1 insertions, 1 deletions
diff --git a/.scripts/wifi-captive-login b/.scripts/wifi-captive-login
index 4e5c4fa..674cbab 100755
--- a/.scripts/wifi-captive-login
+++ b/.scripts/wifi-captive-login
@@ -1,5 +1,5 @@
#!/bin/sh
if command -v netstat 1>/dev/null; then
login=$(netstat -nr | sed -n '3p' | cut -d " " -f 10) ;
- st -e librewolf $login ;
+ [ -n "$login" ] && st -e librewolf $login ;
fi