From 66ba6ec85d446f83f37240c8f2f30857c4588cea Mon Sep 17 00:00:00 2001 From: Saumit Dinesan Date: Wed, 5 Oct 2022 01:06:08 +0530 Subject: wificaptive-login: using awk instead of cut --- .scripts/wifi-captive-login | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.scripts') 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 -- cgit v1.2.3