Skip to content

Commit b93ca34

Browse files
committed
try
1 parent d70953c commit b93ca34

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

live-demo/deploy/buildRelease.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@
22
#!/bin/bash
33

44
# write npm run output both to console and to build.log
5-
npm run build 2>&1 | tee build.log;
5+
npm run build 2>&1 | tee build.log
66

77
# if exist status from the npm run build is not 0
88
# then exit with the status code from the npm run build
99
if [ ${PIPESTATUS[0]} -ne 0 ]; then
10+
echo "Build failed. Exiting with status code ${PIPESTATUS[0]}"
1011
exit ${PIPESTATUS[0]}
1112
fi

0 commit comments

Comments
 (0)