2
0
mirror of https://gitlab.com/Nanolx/NanoDroid synced 2024-11-17 21:26:22 +00:00

build-package: fixup

This commit is contained in:
Christopher Roy Bratusek 2019-07-07 21:49:40 +02:00
parent d2ae7dbb64
commit af4dee388c

View File

@ -149,7 +149,6 @@ grab_apk_from_repo () {
rm -f "${APK_DEST}/${4}.apk.bz2"
wget -q -O "${APK_DEST}/${4}.apk" "${APK_URL}"
if check_sha256sum "${APK_DEST}/${4}.apk" "${SHA_SUM}"; then
if check_sha256sum "${APK_DEST}/${4}.apk" "${SHA_SUM}"; then
echo " SHA256 hash of ${4}.apk is correct"
bzip2 -z "${APK_DEST}/${4}.apk"
@ -159,7 +158,6 @@ grab_apk_from_repo () {
rm -f "${APK_DEST}/${4}.apk"
fi
fi
fi
}
grab_apk_from_url () {
@ -209,7 +207,6 @@ ${5}-${VERSION}-android-apk-download"
rm -f "${APK_DEST}/${4}.apk.bz2"
wget --user-agent="${USER_AGENT}" -q "${APK_URL}" -O "${APK_DEST}/${4}.apk"
if check_sha256sum "${APK_DEST}/${4}.apk" "${SHA_SUM}"; then
if check_sha256sum "${APK_DEST}/${4}.apk" "${SHA_SUM}"; then
echo " SHA256 hash of ${4}.apk is correct"
bzip2 -z "${APK_DEST}/${4}.apk"
@ -219,7 +216,6 @@ ${5}-${VERSION}-android-apk-download"
rm -f "${APK_DEST}/${4}.apk"
fi
fi
fi
}