diff options
author | Philipp Hagemeister <[email protected]> | 2014-04-30 10:39:23 +0200 |
---|---|---|
committer | Philipp Hagemeister <[email protected]> | 2014-04-30 10:39:23 +0200 |
commit | 54a1852f0802347277a0f7eb0613591da0660479 (patch) | |
tree | 09e4e06fc838e5db838063d8342b68523320c76c | |
parent | 0b33704b432fc6a0da56a0b38831a8533e96aba5 (diff) | |
download | youtube-dl-54a1852f0802347277a0f7eb0613591da0660479.tar.gz youtube-dl-54a1852f0802347277a0f7eb0613591da0660479.zip |
Add a redirect for downloads/latest
-rwxr-xr-x | update_latest.sh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/update_latest.sh b/update_latest.sh index 45122a68d..834f8f814 100755 --- a/update_latest.sh +++ b/update_latest.sh @@ -16,5 +16,7 @@ for f in $(ls "downloads/$version/"); do \ done ln -sf --no-target-directory "$version" "downloads/latest" +/bin/echo -e "RewriteEngine On\nRewriteRule latest(.*) /downloads/${version}\$1 [L,R=302]" > .htaccess + echo -n "$version" > latest/version |