Cause install to return 1 on failure.

This fixes issue #123. Namely, the script in scripts/setup/install was
returning 0. Adding `set -e` and `set -o pipeline` causes the install
script to exit and return 1 if any part fails, including piping output
(`set -o pipeline` does this).
This commit is contained in:
Raphael 2015-10-06 21:57:40 -07:00 committed by Tim Abbott
parent 741e9d00d8
commit 0608e32eeb
1 changed files with 2 additions and 0 deletions

View File

@ -1,4 +1,6 @@
#!/bin/bash #!/bin/bash
set -e
set -o pipefail
if [ "$EUID" -ne 0 ]; then if [ "$EUID" -ne 0 ]; then
echo "Error: The installation script must be run as root" >&2 echo "Error: The installation script must be run as root" >&2
exit 1 exit 1