build-package.sh: fix printing of error message when trying to run script on Android device
This commit is contained in:
parent
3d0e516c64
commit
5ec5a1a314
@ -3,6 +3,10 @@
|
|||||||
|
|
||||||
set -e -o pipefail -u
|
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.
|
# Lock file to prevent parallel running in the same environment.
|
||||||
TERMUX_BUILD_LOCK_FILE="/tmp/.termux-build.lck"
|
TERMUX_BUILD_LOCK_FILE="/tmp/.termux-build.lck"
|
||||||
if [ ! -e "$TERMUX_BUILD_LOCK_FILE" ]; then
|
if [ ! -e "$TERMUX_BUILD_LOCK_FILE" ]; then
|
||||||
|
@ -2,7 +2,3 @@ termux_error_exit() {
|
|||||||
echo "ERROR: $*" 1>&2
|
echo "ERROR: $*" 1>&2
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
if [ "$(uname -o)" = Android ]; then
|
|
||||||
termux_error_exit "On-device builds are not supported - see README.md"
|
|
||||||
fi
|
|
||||||
|
Loading…
Reference in New Issue
Block a user