summaryrefslogtreecommitdiff
path: root/.scripts/wifi-captive-login
diff options
context:
space:
mode:
authorSaumit Dinesan <justsaumit@protonmail.com>2022-08-12 07:20:44 +0530
committerSaumit Dinesan <justsaumit@protonmail.com>2022-08-12 07:20:44 +0530
commit937b269967f2ef0ac379cb8cd1d787cc91426d12 (patch)
treeaba6f183e06bf6d0e9e4a56f84dad90977281ba6 /.scripts/wifi-captive-login
parentc87e60e7e9f39e33dce2144d8a855f47358b84a2 (diff)
specifying bash for non-posix compliant scripts+correcting other scripts
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 fdfaf2f..4e5c4fa 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 '3p;d' | cut -d " " -f 10) ;
+ login=$(netstat -nr | sed -n '3p' | cut -d " " -f 10) ;
st -e librewolf $login ;
fi