From c060e3af1717766aa9ffef305319c00d139fee87 Mon Sep 17 00:00:00 2001 From: JeremyStarTM Date: Mon, 3 Jun 2024 02:21:14 +0200 Subject: [PATCH] Fix crashes --- startup.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/startup.sh b/startup.sh index b31b92c..4cdee45 100755 --- a/startup.sh +++ b/startup.sh @@ -5,6 +5,7 @@ set -eo pipefail # Cancel execution of system-wide punktdateien-bashrc if user-wide installation is detected if [ -n "${BASHRCD_SYSTEM}" ] && [ -d "${HOME}/.bashrc.d" ] && [ -f "${HOME}/.bashrc.d/startup.sh" ]; then set +eo pipefail + unset BASHRCD_SYSTEM return 0 fi @@ -47,7 +48,7 @@ EOF fi # Load configuration file -source "config.sh" +if [ -f "config.sh" ] && source "config.sh" # Process configuration changes # -> Flow control