package_uploader.sh: check for dependencies before running

This commit is contained in:
Leonid Pliushch 2019-03-11 16:00:56 +02:00
parent 5a24ad3ee0
commit 398192d4dc
1 changed files with 14 additions and 0 deletions

View File

@ -56,6 +56,20 @@ fi
# Packages are built and uploaded for Termux organisation.
BINTRAY_SUBJECT="termux"
# Check dependencies.
if [ -z "$(command -v curl)" ]; then
echo "[!] Package 'curl' is not installed."
exit 1
fi
if [ -z "$(command -v find)" ]; then
echo "[!] Package 'findutils' is not installed."
exit 1
fi
if [ -z "$(command -v jq)" ]; then
echo "[!] Package 'jq' is not installed."
exit 1
fi
###################################################################
json_metadata_dump() {