Skip to content
This repository has been archived by the owner on Nov 20, 2023. It is now read-only.

Commit

Permalink
fix: add flags to ensure that build aborts if there are errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Arcitec authored and xynydev committed May 10, 2023
1 parent cd5c6c3 commit 4b9fe0b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
4 changes: 4 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
#!/bin/bash

# Tell build process to exit if there are any errors.
set -ouex pipefail

# run scripts
echo "-- Running scripts defined in recipe.yml --"
buildscripts=$(yq '.scripts[]' < /usr/etc/ublue-recipe.yml)
Expand Down
7 changes: 7 additions & 0 deletions scripts/example.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
#!/bin/bash

# Tell this script to exit if there are any errors.
# You should have this in every custom script, to ensure that your completed
# builds actually ran successfully without any errors!
set -ouex pipefail

# Your code goes here.
echo 'This is an example shell script'
echo 'Scripts here will run during build if specified in recipe.yml'

0 comments on commit 4b9fe0b

Please sign in to comment.