From a72bd143353b8d850d2afba34ad656191444d18e Mon Sep 17 00:00:00 2001 From: Leonid Plyushch Date: Sat, 20 Apr 2019 17:27:24 +0300 Subject: [PATCH] build-package.sh: make sure that termux_error_exit() is defined before throwing any errors --- build-package.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/build-package.sh b/build-package.sh index 8ac225203..dc92a5d61 100755 --- a/build-package.sh +++ b/build-package.sh @@ -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