Browse Source

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

emacs-27
Leonid Plyushch 6 years ago
parent
commit
a72bd14335
  1. 6
      build-package.sh

6
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

Loading…
Cancel
Save