瀏覽代碼

Build: fixes missing shebang in release tagging script. (#17894)

Leonard Gram 6 年之前
父節點
當前提交
2596974cd2
共有 1 個文件被更改,包括 4 次插入3 次删除
  1. 4 3
      scripts/tag_release.sh

+ 4 - 3
scripts/tag_release.sh

@@ -1,4 +1,4 @@
-#/bin/bash
+#!/usr/bin/env bash
 
 # abort if we get any error
 set -e
@@ -33,8 +33,9 @@ echo "press [y] to push the tags"
 
 read -n 1 confirm
 
-if [ "${confirm}" == "y" ]; then 
+if [ "${confirm}" == "y" ]; then
     git push origin "${_branch}" --tags
-else 
+else
+    git tag -d "${_tag}"
     echo "Abort! "
 fi