summaryrefslogtreecommitdiff
path: root/.scripts/wifi-captive-login
diff options
context:
space:
mode:
authorSaumit Dinesan <justsaumit@protonmail.com>2022-10-05 01:06:08 +0530
committerSaumit Dinesan <justsaumit@protonmail.com>2022-10-05 01:06:08 +0530
commit66ba6ec85d446f83f37240c8f2f30857c4588cea (patch)
tree7999ca8c701bb3f7f55c69904b700af03a6e74d4 /.scripts/wifi-captive-login
parentf55a0a473c164dddb535aac34018e4d835016ffa (diff)
wificaptive-login: using awk instead of cut
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 674cbab..b285cd9 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) ;
+ login=$(netstat -nr | sed -n '3p' | awk '{print $2}') ;
[ -n "$login" ] && st -e librewolf $login ;
fi