mirror of
https://github.com/octoleo/telegram-bot-bash.git
synced 2024-11-30 02:53:52 +00:00
download json.sh only
This commit is contained in:
parent
fbd86c3412
commit
0422cb016d
12
bashbot.sh
12
bashbot.sh
@ -10,7 +10,7 @@
|
|||||||
# This file is public domain in the USA and all free countries.
|
# This file is public domain in the USA and all free countries.
|
||||||
# Elsewhere, consider it to be WTFPLv2. (wtfpl.net/txt/copying)
|
# Elsewhere, consider it to be WTFPLv2. (wtfpl.net/txt/copying)
|
||||||
#
|
#
|
||||||
#### $$VERSION$$ 0.70-dev-23-g48e6f64
|
#### $$VERSION$$ 0.70-dev-24-gfbd86c3
|
||||||
#
|
#
|
||||||
# Exit Codes:
|
# Exit Codes:
|
||||||
# - 0 sucess (hopefully)
|
# - 0 sucess (hopefully)
|
||||||
@ -58,10 +58,12 @@ if [ ! -f "${TOKENFILE}" ]; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ ! -f "JSON.sh/JSON.sh" ]; then
|
JSONSHFILE="JSON.sh"
|
||||||
echo "Seems to be first run, Downloading JSON.sh..."
|
if [ ! -f "${JSONSHFILE}/${JSONSHFILE}" ]; then
|
||||||
git clone https://github.com/dominictarr/JSON.sh/ 2>&1
|
echo "Seems to be first run, Downloading ${JSONSHFILE}..."
|
||||||
echo "JSON.sh has been downloaded. Proceeding."
|
mkdir "${JSONSHFILE}" 2>/dev/null;
|
||||||
|
curl -sL -o "${JSONSHFILE}/${JSONSHFILE}" "https://cdn.jsdelivr.net/gh/dominictarr/JSON.sh/JSON.sh"
|
||||||
|
chmod +x "${JSONSHFILE}/${JSONSHFILE}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
BOTADMIN="./botadmin"
|
BOTADMIN="./botadmin"
|
||||||
|
Loading…
Reference in New Issue
Block a user