]> git.lizzy.rs Git - rust.git/blobdiff - .github/deploy.sh
Auto merge of #8487 - dswij:8478, r=giraffate
[rust.git] / .github / deploy.sh
index a3c57232f557c4b774cb53ecc7e10299db1bd8e6..34225a5402904084617e9f19adaaa762d0aa5336 100644 (file)
@@ -13,7 +13,8 @@ cp util/gh-pages/lints.json out/master
 if [[ -n $TAG_NAME ]]; then
   echo "Save the doc for the current tag ($TAG_NAME) and point stable/ to it"
   cp -Tr out/master "out/$TAG_NAME"
-  ln -sf "$TAG_NAME" out/stable
+  rm -f out/stable
+  ln -s "$TAG_NAME" out/stable
 fi
 
 if [[ $BETA = "true" ]]; then