summaryrefslogtreecommitdiffhomepage
path: root/update_latest.sh
diff options
context:
space:
mode:
Diffstat (limited to 'update_latest.sh')
-rwxr-xr-xupdate_latest.sh2
1 files changed, 2 insertions, 0 deletions
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@@")