build-package.sh: make sure that termux_error_exit() is defined before throwing any errors
This commit is contained in:
parent
8c49d31a14
commit
918a383d4d
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user