fix scripts BASHBOT_HOME

This commit is contained in:
Kay Marquardt (Gnadelwartz) 2020-12-17 08:43:30 +01:00
parent 1dd546b037
commit c356143be4
2 changed files with 6 additions and 6 deletions

View File

@ -23,12 +23,11 @@
# AUTHOR: KayM (gnadelwartz), kay@rrr.de # AUTHOR: KayM (gnadelwartz), kay@rrr.de
# CREATED: 16.12.2020 16:14:57 # CREATED: 16.12.2020 16:14:57
# #
#### $$VERSION$$ v1.2-dev2-30-ge6223b6 #### $$VERSION$$ v1.2-dev2-33-g1dd546b
#=============================================================================== #===============================================================================
# set where your bashbot lives # set where your bashbot lives
# shellcheck disable=SC1090 BASHBOT_HOME="$(cd "${BASH_SOURCE[0]%/*}" >/dev/null 2>&1 && pwd)/../"
BASHBOT_HOME="${BASHBOTHOME:-../}"
# check for botconfig.jssh # check for botconfig.jssh
if [ ! -r "${BASHBOT_HOME}/botconfig.jssh" ]; then if [ ! -r "${BASHBOT_HOME}/botconfig.jssh" ]; then
@ -82,6 +81,7 @@ case "$1" in
esac esac
# source bashbot # source bashbot
# shellcheck disable=SC1090
source "${BASHBOT_HOME}/bashbot.sh" source "$3" source "${BASHBOT_HOME}/bashbot.sh" source "$3"
# read in users # read in users

View File

@ -21,12 +21,11 @@
# AUTHOR: KayM (gnadelwartz), kay@rrr.de # AUTHOR: KayM (gnadelwartz), kay@rrr.de
# CREATED: 16.12.2020 11:34:27 # CREATED: 16.12.2020 11:34:27
# #
#### $$VERSION$$ v1.2-dev2-29-g85ee757 #### $$VERSION$$ v1.2-dev2-33-g1dd546b
#=============================================================================== #===============================================================================
# set where your bashbot lives # set where your bashbot lives
# shellcheck disable=SC1090 BASHBOT_HOME="$(cd "${BASH_SOURCE[0]%/*}" >/dev/null 2>&1 && pwd)/../"
BASHBOT_HOME="${BASHBOTHOME:-../}"
# check for botconfig.jssh # check for botconfig.jssh
if [ ! -r "${BASHBOT_HOME}/botconfig.jssh" ]; then if [ ! -r "${BASHBOT_HOME}/botconfig.jssh" ]; then
@ -68,6 +67,7 @@ if [[ "$1" == *[!0-9-]* ]]; then
fi fi
# source bashbot and send message # source bashbot and send message
# shellcheck disable=SC1090
source "${BASHBOT_HOME}/bashbot.sh" source "$3" source "${BASHBOT_HOME}/bashbot.sh" source "$3"
"${SEND}" "$1" "$2" "${SEND}" "$1" "$2"