mirror of
https://github.com/octoleo/telegram-bot-bash.git
synced 2025-01-03 14:47:23 +00:00
fix wrong json.sh location if included from other location
This commit is contained in:
parent
ff5fb2d337
commit
9c96e3eb80
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user