exit on error

This commit is contained in:
Daniel Sommer 2024-08-28 15:35:53 +02:00
parent 5784b7e9e5
commit 5b5e1bf1cf

View file

@ -4,6 +4,7 @@
# license: MIT
# exit on error
set -e
# check permissions
[[ "$EUID" != 0 ]] && printf "error: permission denied!\n" >&2 && exit 1