Skip to content
This repository has been archived by the owner on Feb 27, 2018. It is now read-only.

Commit

Permalink
[build-and-install.sh] add -e: stop on error
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Leining committed Apr 22, 2013
1 parent 941fd77 commit b5f3374
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion build-and-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# * add workaround for qt4-ubuntu
# * add error detection
# * check for root if installing
while getopts dnhbp:is: opt; do
while getopts ednhbp:is: opt; do
case $opt in
n)
NOCONFIRM=true
Expand All @@ -17,8 +17,13 @@ while getopts dnhbp:is: opt; do
echo "-i [package-name] ignore certain package"
echo "-s [package-name] start at package"
echo "-d only download required sources (do not build or install)"
echo "-e stop on error "
exit
;;
e)
set -e
echo "WARNING: Stopping on errors"
;;
b)
NOINSTALL=true
;;
Expand Down

0 comments on commit b5f3374

Please sign in to comment.