From d8f4c148def958ea9085eaa0a79930dcaa55c391 Mon Sep 17 00:00:00 2001 From: Saumit Dinesan Date: Thu, 1 Sep 2022 23:26:09 +0530 Subject: fixing wifi-captive on empty var + neofetch ascii tab --- .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 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 -- cgit v1.2.3