diff --git a/devscripts/release.sh b/devscripts/release.sh
index 320a8fa0f..46c31e437 100755
--- a/devscripts/release.sh
+++ b/devscripts/release.sh
@@ -71,7 +71,7 @@ git checkout HEAD -- youtube-dl youtube-dl.exe
 for f in $RELEASE_FILES; do gpg --detach-sig "build/$version/$f"; done
 scp -r "build/$version" ytdl@yt-dl.org:html/tmp/
 ssh ytdl@yt-dl.org "mv html/tmp/$version html/downloads/"
-ssh ytdl@yt-dl.org "cd html/ && sh update_latest.sh $version"
+ssh ytdl@yt-dl.org "sh html/update_latest.sh $version"
 
 /bin/echo -e "\n### Now switching to gh-pages..."
 git clone --branch gh-pages --single-branch . build/gh-pages