Fixed version selection

This commit is contained in:
Sayantan Santra 2022-10-10 23:49:14 -05:00
parent 42fe517ce4
commit 1e03470734

View file

@ -91,7 +91,7 @@ for apk in "${!apks[@]}"; do
version=0 version=0
for vers in $supported_vers; do for vers in $supported_vers; do
if [ $vers != "null" ]; then if [ $vers != "null" ]; then
if [[ ${vers//[!0-9]/} -gt ${version//[!0-9]/} ]]; then if [[ $vers==0 || ${vers//[!0-9]/} -lt ${version//[!0-9]/} ]]; then
version=$vers version=$vers
fi fi
fi fi