Skip to content

Commit

Permalink
add set -e -u
Browse files Browse the repository at this point in the history
  • Loading branch information
msimerson committed Mar 25, 2024
1 parent 3c7c2af commit 49d4dcb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions provision/centos.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#!/bin/sh

. mail-toaster.sh || exit
set -e -u

. mail-toaster.sh

mt6-include linux

Expand Down Expand Up @@ -29,7 +31,7 @@ install_centos()
install_linux centos
}

base_snapshot_exists || exit
base_snapshot_exists || exit 1
create_staged_fs centos
start_staged_jail centos
install_centos
Expand Down
6 changes: 4 additions & 2 deletions provision/ubuntu.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#!/bin/sh

. mail-toaster.sh || exit
set -e -u

. mail-toaster.sh

mt6-include linux

Expand Down Expand Up @@ -29,7 +31,7 @@ install_ubuntu()
install_linux jammy
}

base_snapshot_exists || exit
base_snapshot_exists || exit 1
create_staged_fs ubuntu
start_staged_jail ubuntu
install_ubuntu
Expand Down

0 comments on commit 49d4dcb

Please sign in to comment.