unos-repository

APK repository for unos
git clone git://git.finwo.net/misc/unos-repository
Log | Files | Refs | README

commit 88500519d40191e11967f820f7f096e1511e92ec
parent 499afd347fe205aaed63d5455bd745af279e61cc
Author: Robin Bron <robin.bron@yourhosting.nl>
Date:   Fri, 25 Sep 2026 01:45:17 +0200

Fix for optional trailing slash on public url

Diffstat:
Mmk/check-revision.sh | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/mk/check-revision.sh b/mk/check-revision.sh @@ -71,7 +71,9 @@ fi case "${REPO}" in http://*|https://*) url="${REPO%/}/${APK_NAME}" - if curl -fsI "${url}" >/dev/null 2>&1; then + # Normalize // in path (BUCKET_PUBLIC_URL may have trailing slash). + url=$(printf "%s" "${url}" | sed 's#://#___PROTO___#; s#//*#/#g; s#___PROTO___#://#') + if curl -fsLI "${url}" >/dev/null 2>&1; then echo "check-revision.sh: ${APK_NAME} already published at ${url}" >&2 echo " bump revision in packages/${PKG}/template" >&2 exit 1