mirror of
https://codeberg.org/polarisfm/youtube-dl
synced 2024-11-24 09:24:33 +01:00
Allow latest to be called from everywhere
This commit is contained in:
parent
c052029267
commit
abb88dcb2f
2
.gitignore
vendored
2
.gitignore
vendored
@ -2,4 +2,4 @@
|
|||||||
downloads/*
|
downloads/*
|
||||||
updates_key.pem
|
updates_key.pem
|
||||||
youtube_dl.egg-info
|
youtube_dl.egg-info
|
||||||
|
latest/*
|
@ -8,6 +8,8 @@ if [ -z "$version" ]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
cd "$(dirname $(readlink -f $0))"
|
||||||
|
|
||||||
ln -sf ../downloads/$version latest/directory
|
ln -sf ../downloads/$version latest/directory
|
||||||
for f in $(ls "downloads/$version/"); do \
|
for f in $(ls "downloads/$version/"); do \
|
||||||
ln -sf "../downloads/$version/$f" latest/$(echo $f | sed -e "s@-$version@@")
|
ln -sf "../downloads/$version/$f" latest/$(echo $f | sed -e "s@-$version@@")
|
||||||
|
Loading…
Reference in New Issue
Block a user