diff options
author | 2024-09-14 14:03:43 -0700 | |
---|---|---|
committer | 2024-09-14 14:07:29 -0700 | |
commit | 875161326086769315e7ff576e62b6768290cfc0 (patch) | |
tree | 4950bc02f033aa4757352f7bf1e966bf69297536 /build.sh | |
parent | actions: roll forward actions versions (diff) | |
download | docker-images-875161326086769315e7ff576e62b6768290cfc0.tar.gz docker-images-875161326086769315e7ff576e62b6768290cfc0.tar.bz2 docker-images-875161326086769315e7ff576e62b6768290cfc0.zip |
set -e in build scripts
We're hitting cases where errors happen and the script proceeds,
making it harder to pinpoint errors.
Signed-off-by: John Helmert III <ajak@gentoo.org>
Diffstat (limited to 'build.sh')
-rwxr-xr-x | build.sh | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -1,9 +1,11 @@ #!/bin/bash -# Used to create Gentoo stage3 and portage containers simply by specifying a +# Used to create Gentoo stage3 and portage containers simply by specifying a # TARGET env variable. # Example usage: TARGET=stage3-amd64 ./build.sh +set -e + if [[ -z "$TARGET" ]]; then echo "TARGET environment variable must be set e.g. TARGET=stage3-amd64-openrc." exit 1 |