Skip to content

Commit 14c033f

Browse files
committed
build: exit on build failures
Use `set -e` to exit the build script immediately upon failure and propagate that build error to the caller.
1 parent bd88bdc commit 14c033f

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

build.libgit2.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/bin/bash
22

3+
set -e
4+
35
LIBGIT2SHA=`cat ./nuget.package/libgit2/libgit2_hash.txt`
46
SHORTSHA=${LIBGIT2SHA:0:7}
57

@@ -50,5 +52,3 @@ rm -rf $PACKAGEPATH/$RID
5052
mkdir -p $PACKAGEPATH/$RID/native
5153

5254
cp libgit2/build/libgit2-$SHORTSHA.$LIBEXT $PACKAGEPATH/$RID/native
53-
54-
exit $?

dockerbuild.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/bin/bash
22

3+
set -e
4+
35
docker build -t $RID -f Dockerfile.$RID .
46

57
docker run -it -e RID=$RID --name=$RID $RID

0 commit comments

Comments
 (0)