mirror of
https://github.com/octoleo/telegram-bot-bash.git
synced 2024-12-28 12:50:44 +00:00
fix injecting JSON.awk to work on updates
This commit is contained in:
parent
8c67bb76c4
commit
a3efcd2e7f
@ -7,7 +7,7 @@
|
|||||||
#
|
#
|
||||||
# Usage: source inject-json.sh
|
# Usage: source inject-json.sh
|
||||||
#
|
#
|
||||||
#### $$VERSION$$ v1.21-dev-17-g8c9298d
|
#### $$VERSION$$ v1.21-dev-21-g8c67bb7
|
||||||
##############################################################
|
##############################################################
|
||||||
|
|
||||||
# download JSON.sh
|
# download JSON.sh
|
||||||
@ -21,13 +21,14 @@ if [ ! -r "${JSONSHFILE}" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# download JSON.awk
|
# download JSON.awk
|
||||||
JSONSHFILE="JSON.sh/JSON.awk"
|
JSONSHFILE="JSON.sh/JSON.awk.dist"
|
||||||
if [ ! -r "${JSONSHFILE}" ]; then
|
if [ ! -r "${JSONSHFILE}" ]; then
|
||||||
printf "Inject JSON.awk ... "
|
printf "Inject JSON.awk ... "
|
||||||
curl -sL -o "${JSONSHFILE}" "https://cdn.jsdelivr.net/gh/step-/JSON.awk/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"
|
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"
|
printf "Done!\n"
|
||||||
bash "${JSONSHFILE%/*}/awk-patch.sh" "${JSONSHFILE%/*}/JSON.awk"
|
bash "${JSONSHFILE%/*}/awk-patch.sh" "${JSONSHFILE}"
|
||||||
fi
|
fi
|
||||||
# delete backup files
|
# delete backup files
|
||||||
rm -f "${JSONSHFILE%/*}"/*.bak
|
rm -f "${JSONSHFILE%/*}"/*.bak
|
||||||
|
@ -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
|
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`:
|
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)
|
#### [Next Create Bot](1_firstbot.md)
|
||||||
|
|
||||||
#### $$VERSION$$ v1.21-dev-16-geedd0b3
|
#### $$VERSION$$ v1.21-dev-21-g8c67bb7
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user