Skip to content

Commit ead3530

Browse files
committed
Fail on errors in bootstrap.sh
1 parent d116224 commit ead3530

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

bootstrap.sh

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ usage()
3333
echo "Bootstrap ReFrame by pulling all its dependencies"
3434
echo " -P EXEC Use EXEC as Python interpreter"
3535
echo " -h Print this help message and exit"
36+
echo " --ignore-errors Ignore installation errors"
3637
echo " --pip-opts Pass additional options to pip."
3738
echo " +docs Build also the documentation"
3839
echo " +pygelf Install also the pygelf Python package"
@@ -43,17 +44,22 @@ while getopts "hP:-:" opt; do
4344
case $opt in
4445
"P") python=$OPTARG ;;
4546
"h") usage && exit 0 ;;
46-
"-")
47-
case "${OPTARG}" in
47+
"-")
48+
case "${OPTARG}" in
49+
"ignore-errors") ignore_errors=1 ;;
4850
pip-opts)
49-
PIPOPTS="${!OPTIND}"; OPTIND=$(( $OPTIND + 1 )) ;;
50-
pip-opts=*)
51+
PIPOPTS="${!OPTIND}"; OPTIND=$(( $OPTIND + 1 )) ;;
52+
pip-opts=*)
5153
PIPOPTS=${OPTARG#*=} ;;
5254
esac;;
5355
"?") usage && exit 0 ;;
5456
esac
5557
done
5658

59+
if [ -z $ignore_errors ]; then
60+
set -e
61+
fi
62+
5763
shift $((OPTIND - 1))
5864
if [ -z $python ]; then
5965
python=python3

0 commit comments

Comments
 (0)