machines: aramis: install: exit on error

This commit is contained in:
Bruno BELANYI 2021-05-04 19:16:47 +02:00
parent f2b9040175
commit a03db294fe

View file

@ -1,5 +1,7 @@
#!/bin/sh #!/bin/sh
set -eu
if [ "$(id -u)" -ne 0 ]; then if [ "$(id -u)" -ne 0 ]; then
echo "This script must be run as root" >&2 echo "This script must be run as root" >&2
exit 1 exit 1