diff --git a/install/install_arch.sh b/install/install_arch.sh old mode 100644 new mode 100755 index 5cc80d40..c23458c4 --- a/install/install_arch.sh +++ b/install/install_arch.sh @@ -7,8 +7,12 @@ LOG_DIR='/var/log/onionr' BRANCH='master' +# setup error handlers + set -e +trap "echo -e '\033[31mOnionr installation failed.\033[0m' >&2; exit 1337" ERR INT TERM + # require root permissions if ! [ $(id -u) = 0 ]; then @@ -74,4 +78,6 @@ systemctl start onionr # and we're good! +trap - ERR + exit 0