mirror of
https://github.com/openwrt/packages.git
synced 2025-12-22 03:54:34 +04:00
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>
This commit is contained in:
@@ -77,8 +77,9 @@ if [ "$mode" == "sources" ] ; then
|
|||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
legacy=
|
if [ "$ver" == "3" ] ; then
|
||||||
[ "$ver" == "3" ] && legacy="-b"
|
legacy="-b"
|
||||||
|
fi
|
||||||
# default max recursion is 10
|
# default max recursion is 10
|
||||||
max_recursion_level=20
|
max_recursion_level=20
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user