python: change condition check for legacy opt for Python3
authorAlexandru Ardelean <redacted>
Mon, 9 Sep 2019 10:10:22 +0000 (13:10 +0300)
committerAlexandru Ardelean <redacted>
Fri, 20 Sep 2019 10:42:21 +0000 (13:42 +0300)
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 <redacted>
lang/python/python-package-install.sh

index 2ca2abc16e13e77daf5b9848d2e493084a90d688..f2646f8487ef0d0a481823ac4ec1267e53892091 100644 (file)
@@ -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
 
git clone https://git.99rst.org/PROJECT