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 d70953c commit b93ca34Copy full SHA for b93ca34
live-demo/deploy/buildRelease.sh
@@ -2,10 +2,11 @@
2
#!/bin/bash
3
4
# write npm run output both to console and to build.log
5
-npm run build 2>&1 | tee build.log;
+npm run build 2>&1 | tee build.log
6
7
# if exist status from the npm run build is not 0
8
# then exit with the status code from the npm run build
9
if [ ${PIPESTATUS[0]} -ne 0 ]; then
10
+ echo "Build failed. Exiting with status code ${PIPESTATUS[0]}"
11
exit ${PIPESTATUS[0]}
12
fi
0 commit comments