We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 12017e2 commit 4b214afCopy full SHA for 4b214af
live-demo/deploy/buildRelease.sh
@@ -3,10 +3,11 @@
3
4
# write npm run output both to console and to build.log
5
npm run build 2>&1 | tee build.log
6
+build_status=${PIPESTATUS[0]}
7
8
# if exist status from the npm run build is not 0
9
# then exit with the status code from the npm run build
-if [ ${PIPESTATUS[0]} -ne 0 ]; then
10
- echo "Build failed. Exiting with status code ${PIPESTATUS[0]}"
11
- exit ${PIPESTATUS[0]}
+if [ $build_status -ne 0 ]; then
+ echo "Build failed. Exiting with status code $build_status"
12
+ exit $build_status
13
fi
0 commit comments