We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b237c6f commit 9612bd7Copy full SHA for 9612bd7
1 file changed
mirror.sh
@@ -157,8 +157,10 @@ do_file() {
157
# All git repositories we already use remove "v"s from the beginning
158
# of branch/tag names in the tarball prefix
159
# except for gitlab
160
- if echo "${reference}" | grep -Eq "^v[0-9]" | grep -vq gitlab; then
161
- prefix_ref=$(echo "${reference}" | sed "s/^v//")
+ if echo "${reference}" | grep -Eq "^v[0-9]"; then
+ if echo "${repo}" | grep -vq gitlab; then
162
+ prefix_ref=$(echo "${reference}" | sed "s/^v//")
163
+ fi
164
fi
165
prefix=$(basename "${repo}" | sed "s/.git$//")-${prefix_ref}
166
0 commit comments