aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/get-dep-lib.sh
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2019-01-09 08:08:59 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-01-09 20:53:26 -0800
commit7923507e76e8d64c6c457664ec59f10c884a9fb0 (patch)
treef9fbb4b484eb97905fb1a68131118ce1b626f3ce /scripts/get-dep-lib.sh
parent123f3ef7ec8f977c9949c3ac24008163c722e208 (diff)
downloadsubsurface-7923507e76e8d64c6c457664ec59f10c884a9fb0.tar.gz
build system: try harder to checkout the right version
And actually fail a build if that doesn't work. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'scripts/get-dep-lib.sh')
-rwxr-xr-xscripts/get-dep-lib.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/get-dep-lib.sh b/scripts/get-dep-lib.sh
index 15796ae80..ccda4bcb7 100755
--- a/scripts/get-dep-lib.sh
+++ b/scripts/get-dep-lib.sh
@@ -46,9 +46,9 @@ git_checkout_library() {
if [ ! "$current_sha" = "$target_sha" ] ; then
git fetch origin
- if ! git checkout "$version" ; then
+ if ! git checkout -f "$version" ; then
echo "Can't find the right tag in $name - giving up"
- return 1
+ exit 1
fi
fi
popd