From 23363dbfe0e562e791e4edaea19cb6ad4405e098 Mon Sep 17 00:00:00 2001 From: shockrahwow Date: Wed, 18 Sep 2019 16:49:46 -0700 Subject: [PATCH] guard against mistypes --- wifi | 1 + 1 file changed, 1 insertion(+) diff --git a/wifi b/wifi index fafba7e..b71363a 100755 --- a/wifi +++ b/wifi @@ -47,6 +47,7 @@ __kill_old() { __connect_config() { if [ -z "$debug_kill" ] then + if [ ! -f "$1" ]; then echo Config not found;fi __kill_old wpa_supplicant -B -i wlp1s0 -c "$1" dhclient wlp1s0