From 2f72de023c25283649a058711ecf2be37180c8e5 Mon Sep 17 00:00:00 2001 From: JeremyStarTM Date: Mon, 3 Jun 2024 02:10:23 +0200 Subject: [PATCH] Safety++ --- startup.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/startup.sh b/startup.sh index dcaf848..4bc58ac 100755 --- a/startup.sh +++ b/startup.sh @@ -1,5 +1,6 @@ #!/usr/bin/env bash # shellcheck disable=SC2154 +set -eo pipefail cd "${HOME:?}/.bashrc.d" || ( echo ":: Can't cd into ${HOME:?}/.bashrc.d" @@ -62,3 +63,5 @@ for file in startup.d/*; do # shellcheck disable=SC1090 source "${file}" done + +set +eo pipefail