From a03db294fea7b3093d3c161382fee27b7f5a16e5 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