build-package.sh: make sure that termux_error_exit() is defined before throwing any errors

This commit is contained in:
Leonid Pliushch 2019-04-20 17:27:24 +03:00
parent 8c49d31a14
commit 918a383d4d
1 changed files with 3 additions and 3 deletions

View File

@ -3,6 +3,9 @@
set -e -o pipefail -u
# Utility function to log an error message and exit with an error code.
source scripts/build/termux_error_exit.sh
if [ "$(uname -o)" = Android ]; then
termux_error_exit "On-device builds are not supported - see README.md"
fi
@ -17,9 +20,6 @@ fi
# lock file.
: "${TERMUX_BUILD_IGNORE_LOCK:=false}"
# Utility function to log an error message and exit with an error code.
source scripts/build/termux_error_exit.sh
# Utility function to download a resource with an expected checksum.
source scripts/build/termux_download.sh