fix: Need exact version

This commit is contained in:
Sayantan Santra 2023-08-06 15:58:08 -05:00
parent 4f8781aa98
commit 6df146dd82
Signed by: SinTan1729
GPG key ID: EB3E68BFBA25C85F

View file

@ -156,5 +156,5 @@ for apk in "${!apks[@]}"; do
[[ -z "$version_present" || "$version" == "null" ]] && version_present=0
[[ "$version" == "0" ]] && version=latest
[[ $(ver_less_than $version_present $version) == true || ! -f $apk.apk || $2 == force ]] && ${apks[$apk]} || echo "Recommended version ($version_present) of "$apk" is already present"
[[ "$version_present" != "$version" || ! -f $apk.apk || $2 == force ]] && ${apks[$apk]} || echo "Recommended version ($version_present) of "$apk" is already present"
done