more failsave module sourcing

This commit is contained in:
Kay Marquardt (Gnadelwartz) 2019-04-26 11:41:25 +02:00
parent 81c8b041ec
commit c835e0516c
2 changed files with 4 additions and 4 deletions

View File

@ -12,7 +12,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.70-dev3-8-gb8a23c4
#### $$VERSION$$ v0.70-dev3-10-g81c8b04
#
# Exit Codes:
# - 0 sucess (hopefully)

View File

@ -5,7 +5,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.70-dev3-8-gb8a23c4
#### $$VERSION$$ v0.70-dev3-10-g81c8b04
#
# shellcheck disable=SC2154
# shellcheck disable=SC2034
@ -42,9 +42,9 @@ Get the code in my [GitHub](http://github.com/topkecleon/telegram-bot-bash)
# load modules
# shellcheck source=./modules/aliases.sh
[ -r "${MODULEDIR}/aliases.sh" ] && source "${MODULEDIR}/aliases.sh"
[ -r "${MODULEDIR:-.}/aliases.sh" ] && source "${MODULEDIR:-.}/aliases.sh"
# shellcheck source=./modules/background.sh
[ -r "${MODULEDIR}/background.sh" ] && source "${MODULEDIR}/background.sh"
[ -r "${MODULEDIR:-.}/background.sh" ] && source "${MODULEDIR:-.}/background.sh"
# ... more modules here ...
# mycommands is the last "module" to source in