1
0
Fork 0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-12-22 08:47:41 +00:00

Write downloads .htaccess, not main one

This commit is contained in:
Philipp Hagemeister 2014-04-30 10:40:14 +02:00
parent 54a1852f08
commit 644f92f6a5

View file

@ -16,7 +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
/bin/echo -e "RewriteEngine On\nRewriteRule latest(.*) /downloads/${version}\$1 [L,R=302]" > downloads/.htaccess
echo -n "$version" > latest/version