From aec4e71dc8d61c3b67a5fe8a3aa8a0d23a83efe6 Mon Sep 17 00:00:00 2001 From: "Kay Marquardt (Gnadelwartz)" Date: Wed, 10 Jun 2020 14:02:29 +0200 Subject: [PATCH] always source commands.sh --- bashbot.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bashbot.sh b/bashbot.sh index 473fa00..432f9fb 100755 --- a/bashbot.sh +++ b/bashbot.sh @@ -11,7 +11,7 @@ # This file is public domain in the USA and all free countries. # Elsewhere, consider it to be WTFPLv2. (wtfpl.net/txt/copying) # -#### $$VERSION$$ v0.96-pre-27-gec7fce7 +#### $$VERSION$$ v0.96-pre-28-gc2f4753 # # Exit Codes: # - 0 sucess (hopefully) @@ -230,9 +230,9 @@ if [ "${SOURCE}" != "yes" ]; then ls -l "${COMMANDS}" exit 3 fi - # shellcheck source=./commands.sh - source "${COMMANDS}" "source" fi +# shellcheck source=./commands.sh +[ -r "${COMMANDS}" ] && source "${COMMANDS}" "source" ############### # load modules