Skip to content

Commit 7169933

Browse files
committed
report error if compile fails
1 parent 3a070a9 commit 7169933

File tree

4 files changed

+4
-0
lines changed

4 files changed

+4
-0
lines changed

scripts/build/dynamic

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#!/usr/bin/env bash
22

33
source scripts/build/.variables
4+
set -e
45
go build -x --ldflags "${LDFLAGS}" -o _exe/liquidweb-cli github.com/liquidweb/liquidweb-cli
56
exit 0

scripts/build/install

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#!/usr/bin/env bash
22

33
source scripts/build/.variables
4+
set -e
45
go install -x --ldflags "${LDFLAGS}"
56
echo ""
67
echo "liquidweb-cli has been installed, and it should now be in your PATH."

scripts/build/release-build

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#!/usr/bin/env bash
22

33
source scripts/build/.variables
4+
set -e
45
VERSION=${VERSION} GITCOMMIT=${GITCOMMIT} BUILDTIME=${BUILDTIME} goreleaser --snapshot --skip-publish --rm-dist
56
exit 0

scripts/build/static

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#!/usr/bin/env bash
22

33
source scripts/build/.variables
4+
set -e
45
CGO_ENABLED=0 go build -x -ldflags '-w -extldflags "-static"' --ldflags "${LDFLAGS}" -o _exe/liquidweb-cli github.com/liquidweb/liquidweb-cli
56
exit 0

0 commit comments

Comments
 (0)