summary refs log tree commit diff
path: root/update_latest.sh
diff options
context:
space:
mode:
Diffstat (limited to 'update_latest.sh')
-rwxr-xr-xupdate_latest.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/update_latest.sh b/update_latest.sh
index 66a3e9999..2b1c597ec 100755
--- a/update_latest.sh
+++ b/update_latest.sh
@@ -3,6 +3,11 @@ set -e
 
 version="$1"
 
+if [ -z "$version" ]; then
+	echo "Usage: $0 version"
+	exit 1
+fi
+
 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@@")