Fix crash on scan failure
authorSiraaj Khandkar <siraaj@khandkar.net>
Thu, 7 Oct 2021 23:04:30 +0000 (19:04 -0400)
committerSiraaj Khandkar <siraaj@khandkar.net>
Thu, 7 Oct 2021 23:04:30 +0000 (19:04 -0400)
home/bin/arp-recon

index e53d2ea..c96192f 100755 (executable)
@@ -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 \
This page took 0.021205 seconds and 4 git commands to generate.