download json.sh only

This commit is contained in:
Kay Marquardt (Gnadelwartz) 2019-04-21 18:20:56 +02:00
parent fbd86c3412
commit 0422cb016d

View File

@ -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"