From b9772e7d8488c752c5b1e0bc506c175dc3ddbbd8 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sat, 30 Dec 2017 20:17:40 -0200 Subject: Check if all logs are empty --- kvmx | 5 +++++ 1 file changed, 5 insertions(+) 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 } -- cgit v1.2.3