Browse Source

Allow latest to be called from everywhere

download-server-ytdl-org
Philipp Hagemeister 12 years ago
parent
commit
abb88dcb2f
2 changed files with 3 additions and 1 deletions
  1. +1
    -1
      .gitignore
  2. +2
    -0
      update_latest.sh

+ 1
- 1
.gitignore View File

@ -2,4 +2,4 @@
downloads/*
updates_key.pem
youtube_dl.egg-info
latest/*

+ 2
- 0
update_latest.sh View File

@ -8,6 +8,8 @@ if [ -z "$version" ]; then
exit 1
fi
cd "$(dirname $(readlink -f $0))"
ln -sf ../downloads/$version latest/directory
for f in $(ls "downloads/$version/"); do \
ln -sf "../downloads/$version/$f" latest/$(echo $f | sed -e "s@-$version@@")


Loading…
Cancel
Save