Browse Source

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>
lilik-openwrt-22.03
Alexandru Ardelean 5 years ago
parent
commit
b104c56e2b
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      lang/python/python-package-install.sh

+ 3
- 2
lang/python/python-package-install.sh View 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


Loading…
Cancel
Save