mirror of
https://github.com/optim-enterprises-bv/secureblue.git
synced 2025-11-08 06:15:21 +00:00
fix: add flags to ensure that build aborts if there are errors
This commit is contained in:
4
build.sh
4
build.sh
@@ -1,4 +1,8 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Tell build process to exit if there are any errors.
|
||||||
|
set -ouex pipefail
|
||||||
|
|
||||||
# run scripts
|
# run scripts
|
||||||
echo "-- Running scripts defined in recipe.yml --"
|
echo "-- Running scripts defined in recipe.yml --"
|
||||||
buildscripts=$(yq '.scripts[]' < /usr/etc/ublue-recipe.yml)
|
buildscripts=$(yq '.scripts[]' < /usr/etc/ublue-recipe.yml)
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
#!/bin/bash
|
#!/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 'This is an example shell script'
|
||||||
echo 'Scripts here will run during build if specified in recipe.yml'
|
echo 'Scripts here will run during build if specified in recipe.yml'
|
||||||
|
|||||||
Reference in New Issue
Block a user