diff --git a/dev/inject-json.sh b/dev/inject-json.sh index f02a58b..9071d04 100644 --- a/dev/inject-json.sh +++ b/dev/inject-json.sh @@ -7,7 +7,7 @@ # # Usage: source inject-json.sh # -#### $$VERSION$$ v1.21-dev-17-g8c9298d +#### $$VERSION$$ v1.21-dev-21-g8c67bb7 ############################################################## # download JSON.sh @@ -21,13 +21,14 @@ if [ ! -r "${JSONSHFILE}" ]; then fi # download JSON.awk -JSONSHFILE="JSON.sh/JSON.awk" +JSONSHFILE="JSON.sh/JSON.awk.dist" if [ ! -r "${JSONSHFILE}" ]; then printf "Inject JSON.awk ... " curl -sL -o "${JSONSHFILE}" "https://cdn.jsdelivr.net/gh/step-/JSON.awk/JSON.awk" curl -sL -o "${JSONSHFILE%/*}/awk-patch.sh" "https://cdn.jsdelivr.net/gh/step-/JSON.awk/tool/patch-for-busybox-awk.sh" + chmod +x "${JSONSHFILE}" printf "Done!\n" - bash "${JSONSHFILE%/*}/awk-patch.sh" "${JSONSHFILE%/*}/JSON.awk" + bash "${JSONSHFILE%/*}/awk-patch.sh" "${JSONSHFILE}" fi # delete backup files rm -f "${JSONSHFILE%/*}"/*.bak diff --git a/doc/0_install.md b/doc/0_install.md index 13fdb7d..f097e7a 100644 --- a/doc/0_install.md +++ b/doc/0_install.md @@ -63,7 +63,7 @@ Most systems with awk can use `JSON.awk` as drop in replacement BSD and MacOS users must install `gnu awk` and adjust the shebang, see below -After you have checked that 'JSON.awk' is working correct on your system make `JSON.awk` executable and (re)start bashbot. +After you have checked that 'JSON.awk.dist' is working correct on your system copy it to `JSON.awk` and (re)start bashbot. Note: If you are not using the zip / tar archive, you must install `JSON.awk` manually into the same directory as 'JSON.sh`: @@ -127,5 +127,5 @@ You must update to [Version 1.20](https://github.com/topkecleon/telegram-bot-bas #### [Next Create Bot](1_firstbot.md) -#### $$VERSION$$ v1.21-dev-16-geedd0b3 +#### $$VERSION$$ v1.21-dev-21-g8c67bb7