diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2017-12-30 20:17:40 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2017-12-30 20:17:40 -0200 |
commit | b9772e7d8488c752c5b1e0bc506c175dc3ddbbd8 (patch) | |
tree | 56c4d62f76228573b87769d846196090f1c35c05 | |
parent | 1446a4e71e086295fcef5ed42339e34ed83a69d4 (diff) | |
download | kvmx-b9772e7d8488c752c5b1e0bc506c175dc3ddbbd8.tar.gz kvmx-b9772e7d8488c752c5b1e0bc506c175dc3ddbbd8.tar.bz2 |
Check if all logs are empty
-rwxr-xr-x | kvmx | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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 } |