summaryrefslogtreecommitdiff
path: root/lang/python
diff options
context:
space:
mode:
authorAlexandru Ardelean <ardeleanalex@gmail.com>2019-09-09 13:10:22 +0300
committerAlexandru Ardelean <ardeleanalex@gmail.com>2019-09-20 13:42:21 +0300
commitb104c56e2ba23e972d8f14280b41dd54f22ba302 (patch)
treea50e053ef402d5648bedc4efe8e2cedf07c610da /lang/python
parent52d79aaeae094e3871494cb9f74e1635abc661ac (diff)
python: change condition check for legacy opt for Python3
As I remember this worked. But since `set -e` is set, I am a bit paranoid about it. In the sense that it may fail if `ver` != 3. Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
Diffstat (limited to 'lang/python')
-rw-r--r--lang/python/python-package-install.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/lang/python/python-package-install.sh b/lang/python/python-package-install.sh
index 2ca2abc16..f2646f848 100644
--- a/lang/python/python-package-install.sh
+++ b/lang/python/python-package-install.sh
@@ -77,8 +77,9 @@ if [ "$mode" == "sources" ] ; then
exit 0
fi
-legacy=
-[ "$ver" == "3" ] && legacy="-b"
+if [ "$ver" == "3" ] ; then
+ legacy="-b"
+fi
# default max recursion is 10
max_recursion_level=20