Skip to content

Commit

Permalink
release: set -e to exit on error in iso image scripts
Browse files Browse the repository at this point in the history
Reviewed by:	gjb
Differential Revision:	https://reviews.freebsd.org/D17651
  • Loading branch information
emaste committed Oct 22, 2018
1 parent 1b485da commit 6bf4c0a
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions release/amd64/mkisoimages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
# extra-bits-dir, if provided, contains additional files to be merged
# into base-bits-dir as part of making the image.

set -e

if [ -z $ETDUMP ]; then
ETDUMP=etdump
fi
Expand Down
2 changes: 2 additions & 0 deletions release/i386/mkisoimages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
# extra-bits-dir, if provided, contains additional files to be merged
# into base-bits-dir as part of making the image.

set -e

if [ "$1" = "-b" ]; then
# This is highly x86-centric and will be used directly below.
bootable="-o bootimage=i386;$4/boot/cdboot -o no-emul-boot"
Expand Down
1 change: 1 addition & 0 deletions release/powerpc/mkisoimages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
# extra-bits-dir, if provided, contains additional files to be merged
# into base-bits-dir as part of making the image.

set -e

if [ "$1" = "-b" ]; then
bootable=1
Expand Down
2 changes: 2 additions & 0 deletions release/sparc64/mkisoimages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
# resulting ISO image, base-bits-dir contains the image contents and
# extra-bits-dir, if provided, contains additional files to be merged
# into base-bits-dir as part of making the image.
set -e

if [ $# -lt 3 ]; then
echo "Usage: $0 [-b] image-label image-name base-bits-dir [extra-bits-dir]" > /dev/stderr
exit 1
Expand Down

0 comments on commit 6bf4c0a

Please sign in to comment.