build-package.sh: fix printing of error message when trying to run script on Android device

This commit is contained in:
Leonid Pliushch 2019-03-26 01:27:09 +02:00
parent 3d0e516c64
commit 5ec5a1a314
2 changed files with 4 additions and 4 deletions

View File

@ -3,6 +3,10 @@
set -e -o pipefail -u
if [ "$(uname -o)" = Android ]; then
termux_error_exit "On-device builds are not supported - see README.md"
fi
# Lock file to prevent parallel running in the same environment.
TERMUX_BUILD_LOCK_FILE="/tmp/.termux-build.lck"
if [ ! -e "$TERMUX_BUILD_LOCK_FILE" ]; then

View File

@ -2,7 +2,3 @@ termux_error_exit() {
echo "ERROR: $*" 1>&2
exit 1
}
if [ "$(uname -o)" = Android ]; then
termux_error_exit "On-device builds are not supported - see README.md"
fi