From 6df146dd82a8ad745687551eef920d03f2864171 Mon Sep 17 00:00:00 2001 From: SinTan1729 Date: Sun, 6 Aug 2023 15:58:08 -0500 Subject: [PATCH] fix: Need exact version --- download_apk.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/download_apk.sh b/download_apk.sh index d09a1ec..0f254ba 100755 --- a/download_apk.sh +++ b/download_apk.sh @@ -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