]> gitweb.fluxo.info Git - kvmx.git/commitdiff
Check if all logs are empty
authorSilvio Rhatto <rhatto@riseup.net>
Sat, 30 Dec 2017 22:17:40 +0000 (20:17 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Sat, 30 Dec 2017 22:17:40 +0000 (20:17 -0200)
kvmx

diff --git a/kvmx b/kvmx
index ad31f193f02cd08229bdecc5174362f131844b05..9321a0366c77aa51630f97bc703e1e8d36a9a37f 100755 (executable)
--- a/kvmx
+++ b/kvmx
@@ -1136,6 +1136,11 @@ function kvmx_log {
     logs="$logs $XDMCPLOG"
   fi
 
+  if [ -z "$logs" ]; then
+    echo "$BASENAME: $VM: all logs are empty"
+    exit
+  fi
+
   tail -F $logs
 }