mirror of
https://github.com/fosslinux/live-bootstrap.git
synced 2026-03-02 01:18:08 +01:00
Fix mirror.sh
Check for "gitlab" in the repository URL instead of the filtered reference
This commit is contained in:
parent
b237c6f106
commit
9612bd756b
1 changed files with 4 additions and 2 deletions
|
|
@ -157,8 +157,10 @@ do_file() {
|
||||||
# All git repositories we already use remove "v"s from the beginning
|
# All git repositories we already use remove "v"s from the beginning
|
||||||
# of branch/tag names in the tarball prefix
|
# of branch/tag names in the tarball prefix
|
||||||
# except for gitlab
|
# except for gitlab
|
||||||
if echo "${reference}" | grep -Eq "^v[0-9]" | grep -vq gitlab; then
|
if echo "${reference}" | grep -Eq "^v[0-9]"; then
|
||||||
prefix_ref=$(echo "${reference}" | sed "s/^v//")
|
if echo "${repo}" | grep -vq gitlab; then
|
||||||
|
prefix_ref=$(echo "${reference}" | sed "s/^v//")
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
prefix=$(basename "${repo}" | sed "s/.git$//")-${prefix_ref}
|
prefix=$(basename "${repo}" | sed "s/.git$//")-${prefix_ref}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue