diff options
author | Philipp Hagemeister <[email protected]> | 2013-06-25 18:29:07 +0200 |
---|---|---|
committer | Philipp Hagemeister <[email protected]> | 2013-06-25 18:29:07 +0200 |
commit | 110c975154feee845039bcb9bfa4bca565362829 (patch) | |
tree | aad198ef0b599a025482ba1bf76bac5541f6882a | |
parent | 8005b349a40e57b4abc456b349789391af94b4ae (diff) | |
download | youtube-dl-110c975154feee845039bcb9bfa4bca565362829.tar.gz youtube-dl-110c975154feee845039bcb9bfa4bca565362829.zip |
Script to update the latest/ directory (#925)
-rwxr-xr-x | update_latest.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/update_latest.sh b/update_latest.sh new file mode 100755 index 000000000..66a3e9999 --- /dev/null +++ b/update_latest.sh @@ -0,0 +1,9 @@ +#/bins/sh +set -e + +version="$1" + +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@@") +done |