From: Siraaj Khandkar Date: Thu, 7 Oct 2021 23:04:30 +0000 (-0400) Subject: Fix crash on scan failure X-Git-Url: https://git.xandkar.net/?a=commitdiff_plain;h=44be784b13f5e7535b1a04152a2a3974fe5efc80;p=khome.git Fix crash on scan failure --- diff --git a/home/bin/arp-recon b/home/bin/arp-recon index e53d2ea..c96192f 100755 --- a/home/bin/arp-recon +++ b/home/bin/arp-recon @@ -49,7 +49,9 @@ log() { while :; do debug '(>) scan' - sudo arp-scan --localnet; + if ! sudo arp-scan --localnet; then + error 'scan failed' + fi debug '(.) scan' sleep "$interval"; done \