diff --git a/bashbot.sh b/bashbot.sh index 9a34b88..49fddf0 100755 --- a/bashbot.sh +++ b/bashbot.sh @@ -749,7 +749,7 @@ if ! _is_function send_message ; then exit 1 fi -JSONSHFILE="${BASHBOT_JSONSH:-${RUNDIR}/JSON.sh/JSON.sh}" +JSONSHFILE="${BASHBOT_JSONSH:-${SCRIPTDIR}/JSON.sh/JSON.sh}" [[ "${JSONSHFILE}" != *"/JSON.sh" ]] && echo -e "${RED}ERROR: \"${JSONSHFILE}\" ends not with \"JSONS.sh\".${NC}" && exit 3 if [ ! -f "${JSONSHFILE}" ]; then