Skip to content

Commit c9dcc63

Browse files
authored
Merge pull request #177 from Loki-101/patch-1
Better error handling
2 parents 5553297 + dea4f16 commit c9dcc63

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

blueprint.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,10 @@ if [[ $1 != "-bash" ]]; then
254254
PRINT FATAL "Missing dependency \"yarn\"."
255255
fi
256256
hide_progress
257+
258+
set -eo pipefail
257259
yarn install
260+
set +eo pipefail
258261

259262
((PROGRESS_NOW++))
260263

@@ -370,7 +373,9 @@ if [[ $1 != "-bash" ]]; then
370373
PRINT INFO "Rebuilding panel assets.."
371374
hide_progress
372375
cd "$FOLDER" || cdhalt
376+
set -eo pipefail
373377
yarn run build:production --progress
378+
set +eo pipefail
374379

375380
((PROGRESS_NOW++))
376381

0 commit comments

Comments
 (0)