imagemagick-x: fix build.sh

Fix following error when parsing build.sh files:

  imagemagick-x/build.sh: line 26: [: -lt: unary operator expected
This commit is contained in:
Leonid Pliushch 2019-09-18 22:49:11 +03:00 committed by Yaksh Bariya
parent 13f395a6e0
commit e945485102
No known key found for this signature in database
GPG Key ID: F7486BA7D3D27581

View File

@ -23,7 +23,7 @@ TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
--disable-openmp
ac_cv_func_ftime=no"
if [ $TERMUX_PKG_API_LEVEL -lt 24 ]; then
if [ ${TERMUX_PKG_API_LEVEL:-24} -lt 24 ]; then
TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" ac_cv_header_complex_h=no"
fi