mirror of
https://github.com/BtbN/FFmpeg-Builds.git
synced 2025-04-29 22:24:28 +02:00
More descriptively name latest release archives
This commit is contained in:
parent
490e081b18
commit
db4e36b8f1
@ -31,7 +31,15 @@ while [[ $# -gt 0 ]]; do
|
|||||||
cd repack_dir
|
cd repack_dir
|
||||||
|
|
||||||
INAME="$(echo ffmpeg-*)"
|
INAME="$(echo ffmpeg-*)"
|
||||||
ONAME="ffmpeg-latest-$(cut -d- -f5- <<<"$INAME")"
|
TAGNAME="$(cut -d- -f2 <<<"$INAME")"
|
||||||
|
|
||||||
|
if [[ $TAGNAME == N ]]; then
|
||||||
|
TAGNAME="master"
|
||||||
|
elif [[ $TAGNAME == n* ]]; then
|
||||||
|
TAGNAME="$(sed -re 's/([0-9]+\.[0-9]+).*/\1/' <<<"$TAGNAME")"
|
||||||
|
fi
|
||||||
|
|
||||||
|
ONAME="ffmpeg-$TAGNAME-latest-$(cut -d- -f5- <<<"$INAME")"
|
||||||
mv "$INAME" "$ONAME"
|
mv "$INAME" "$ONAME"
|
||||||
|
|
||||||
if [[ $INPUT == *.zip ]]; then
|
if [[ $INPUT == *.zip ]]; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user