Added set -uo pipefail
This commit is contained in:
parent
95977f18c1
commit
00fe9bc553
|
@ -359,5 +359,5 @@ gentoo_chroot() {
|
|||
EXECUTED_IN_CHROOT=true \
|
||||
TMP_DIR=$TMP_DIR \
|
||||
exec chroot -- "$ROOT_MOUNTPOINT" "$GENTOO_INSTALL_REPO_DIR/scripts/main_chroot.sh" "$@" \
|
||||
|| die "Failed to chroot into '$ROOT_MOUNTPOINT'"
|
||||
|| die "Failed to chroot into '$ROOT_MOUNTPOINT'"
|
||||
}
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
#!/bin/bash
|
||||
set -uo pipefail
|
||||
|
||||
################################################
|
||||
# Initialize script environment
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
#!/bin/bash
|
||||
set -uo pipefail
|
||||
|
||||
[[ "${EXECUTED_IN_CHROOT}" != true ]] \
|
||||
&& { echo "This script must not be executed directly!" >&2; exit 1; }
|
||||
|
|
Loading…
Reference in New Issue