From 8755d84b214d1c1b732d130d7b247dd6be573e9d Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Tue, 4 May 2021 19:16:47 +0200 Subject: [PATCH] machines: aramis: install: exit on error --- machines/aramis/install.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/machines/aramis/install.sh b/machines/aramis/install.sh index 537ef9e..b03a6df 100755 --- a/machines/aramis/install.sh +++ b/machines/aramis/install.sh @@ -1,5 +1,7 @@ #!/bin/sh +set -eu + if [ "$(id -u)" -ne 0 ]; then echo "This script must be run as root" >&2 exit 1