Merge pull request #571 from eduardosm/fix-mirror.sh

Fix mirror.sh
This commit is contained in:
Andrius Štikonas 2026-02-04 22:46:57 +00:00 committed by GitHub
commit 3ceae57996
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -157,9 +157,11 @@ do_file() {
# All git repositories we already use remove "v"s from the beginning
# of branch/tag names in the tarball prefix
# except for gitlab
if echo "${reference}" | grep -Eq "^v[0-9]" | grep -vq gitlab; then
if echo "${reference}" | grep -Eq "^v[0-9]"; then
if echo "${repo}" | grep -vq gitlab; then
prefix_ref=$(echo "${reference}" | sed "s/^v//")
fi
fi
prefix=$(basename "${repo}" | sed "s/.git$//")-${prefix_ref}
(