Skip to content

Commit

Permalink
fix: build failures should always exit non-zero
Browse files Browse the repository at this point in the history
  • Loading branch information
c-dilks committed Sep 28, 2023
1 parent 04558ca commit 6bffecc
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions build-coatjava.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#!/bin/bash

set -e
set -u
set -o pipefail

usage='build-coatjava.sh [-h] [--quiet] [--spotbugs] [--nomaps] [--unittests]'

quiet="no"
Expand All @@ -25,7 +29,7 @@ do
quiet="yes"
else
echo "$usage"
exit
exit 2
fi
done

Expand Down Expand Up @@ -77,7 +81,7 @@ if [ $downloadMaps == "yes" ]; then
echo ERROR::::::::::: Could not download field map:
echo $webDir/$map
echo One option is to download manually into etc/data/magfield and then run this build script with --nomaps
exit
exit 1
fi
done
cd -
Expand Down

0 comments on commit 6bffecc

Please sign in to comment.