Fix crash on scan failure
[khome.git] / 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.035017 seconds and 4 git commands to generate.