From c9905f5c4ce94d01e7ffe33e969d3272e807ea98 Mon Sep 17 00:00:00 2001 From: Alexis Ben Miloud--Josselin Date: Thu, 28 Jun 2018 17:52:35 +0200 Subject: [PATCH] Exit on error --- kvmstats.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kvmstats.sh b/kvmstats.sh index 8967452..2daaa9d 100644 --- a/kvmstats.sh +++ b/kvmstats.sh @@ -4,6 +4,8 @@ # files. On Debian, this command is provided by the 'html-xml-utils' # package. +set -e -u + usage () { echo 'usage: kvmstats.sh [-u K|M|G]' exit 1