mirror of
https://github.com/BtbN/FFmpeg-Builds.git
synced 2025-05-01 07:04:28 +02:00
Fix renaming on exact tags
This commit is contained in:
parent
c4b62f47f3
commit
bf95872731
@ -39,7 +39,12 @@ while [[ $# -gt 0 ]]; do
|
|||||||
TAGNAME="$(sed -re 's/([0-9]+\.[0-9]+).*/\1/' <<<"$TAGNAME")"
|
TAGNAME="$(sed -re 's/([0-9]+\.[0-9]+).*/\1/' <<<"$TAGNAME")"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [[ $INAME == *-*-*-*-*-* ]]; then
|
||||||
ONAME="ffmpeg-$TAGNAME-latest-$(cut -d- -f5- <<<"$INAME")"
|
ONAME="ffmpeg-$TAGNAME-latest-$(cut -d- -f5- <<<"$INAME")"
|
||||||
|
else
|
||||||
|
ONAME="ffmpeg-$TAGNAME-latest-$(cut -d- -f3- <<<"$INAME")"
|
||||||
|
fi
|
||||||
|
|
||||||
mv "$INAME" "$ONAME"
|
mv "$INAME" "$ONAME"
|
||||||
|
|
||||||
if [[ $INPUT == *.zip ]]; then
|
if [[ $INPUT == *.zip ]]; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user