This repository has been archived by the owner on Nov 20, 2023. It is now read-only.
forked from blue-build/legacy-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: add flags to ensure that build aborts if there are errors
- Loading branch information
Showing
2 changed files
with
11 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |