summary refs log tree commit diff
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2013-06-25 19:13:59 +0200
committerPhilipp Hagemeister <phihag@phihag.de>2013-06-25 19:13:59 +0200
commitabb88dcb2fbda373b4923f17183bbfc3f49d01e8 (patch)
treec93eb45648dd4b4ea3152d3217a220daedce0236
parentc052029267ba4988e50bd45a85a27dd5f1fb01de (diff)
downloadyoutube-dl-abb88dcb2fbda373b4923f17183bbfc3f49d01e8.tar.gz
youtube-dl-abb88dcb2fbda373b4923f17183bbfc3f49d01e8.tar.xz
youtube-dl-abb88dcb2fbda373b4923f17183bbfc3f49d01e8.zip
Allow latest to be called from everywhere
-rw-r--r--.gitignore2
-rwxr-xr-xupdate_latest.sh2
2 files changed, 3 insertions, 1 deletions
diff --git a/.gitignore b/.gitignore
index 17dfe30db..e18211d57 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,4 +2,4 @@
 downloads/*
 updates_key.pem
 youtube_dl.egg-info
-
+latest/*
\ No newline at end of file
diff --git a/update_latest.sh b/update_latest.sh
index 2b1c597ec..05c2f17e1 100755
--- a/update_latest.sh
+++ b/update_latest.sh
@@ -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@@")