From feb192f825c925758f3c8b2372c55aad968e302d Mon Sep 17 00:00:00 2001 From: Fioren <102145692+FiorenMas@users.noreply.github.com> Date: Sat, 26 Oct 2024 17:08:51 +0700 Subject: [PATCH] fix --- src/build/utils.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/build/utils.sh b/src/build/utils.sh index 22f28c3..378b7a5 100644 --- a/src/build/utils.sh +++ b/src/build/utils.sh @@ -181,13 +181,14 @@ get_apk() { done version=$(echo -e "${_versions[*]}" | sed -n "$((attempt + 1))p") fi + version=$(echo "$version" | tr -d ' ' | sed 's/\./-/g') green_log "[+] Downloading $3 version: $version $5 $6 $7" if [[ $5 == "Bundle" ]]; then local base_apk="$2.apkm" else local base_apk="$2.apk" fi - local dl_url=$(dl_apk "https://www.apkmirror.com/apk/$4-${version//./-}-release/" \ + local dl_url=$(dl_apk "https://www.apkmirror.com/apk/$4-$version-release/" \ "$url_regexp" \ "$base_apk" \ "$5")