From fb480f22fcfbfeece723333b974dd56e68d9ddbb Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Thu, 24 Feb 2022 21:24:04 -0500 Subject: [PATCH] make cythonize detection compatible with /bin/dash on ubunutu --- src/ML-IAP/Install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ML-IAP/Install.sh b/src/ML-IAP/Install.sh index 3ee8a1360a..753dfae358 100755 --- a/src/ML-IAP/Install.sh +++ b/src/ML-IAP/Install.sh @@ -69,7 +69,7 @@ elif (test $1 = 0) then sed -i -e '/^include.*python.*mliap_python.*$/d' ../Makefile.package.settings elif (test $1 = 2) then - if (test "$(type cythonize 2> /dev/null)" != "" && test -e ../python_impl.cpp) then + if (type cythonize 2>&1 > /dev/null && test -e ../python_impl.cpp) then if (test -e ../Makefile.package) then sed -i -e 's/[^ \t]*-DMLIAP_PYTHON[^ \t]* //g' ../Makefile.package fi