aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2017-12-30 20:17:40 -0200
committerSilvio Rhatto <rhatto@riseup.net>2017-12-30 20:17:40 -0200
commitb9772e7d8488c752c5b1e0bc506c175dc3ddbbd8 (patch)
tree56c4d62f76228573b87769d846196090f1c35c05
parent1446a4e71e086295fcef5ed42339e34ed83a69d4 (diff)
downloadkvmx-b9772e7d8488c752c5b1e0bc506c175dc3ddbbd8.tar.gz
kvmx-b9772e7d8488c752c5b1e0bc506c175dc3ddbbd8.tar.bz2
Check if all logs are empty
-rwxr-xr-xkvmx5
1 files changed, 5 insertions, 0 deletions
diff --git a/kvmx b/kvmx
index ad31f19..9321a03 100755
--- 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
}