aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rwxr-xr-xscripts/upload-github-release-asset.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/upload-github-release-asset.sh b/scripts/upload-github-release-asset.sh
index e43c573..6923870 100755
--- a/scripts/upload-github-release-asset.sh
+++ b/scripts/upload-github-release-asset.sh
@@ -12,7 +12,7 @@
12# * tag 12# * tag
13# * filename 13# * filename
14# * github_api_token 14# * github_api_token
15# * overwrite (optional, default to be false) 15# * overwrite (optional, could be ture, false, delete, default to be false)
16# 16#
17# Script to upload a release asset using the GitHub API v3. 17# Script to upload a release asset using the GitHub API v3.
18# 18#
@@ -68,6 +68,9 @@ else
68 else 68 else
69 echo "File already exists on tag $tag" 69 echo "File already exists on tag $tag"
70 echo "If you want to overwrite it, set overwrite=true" 70 echo "If you want to overwrite it, set overwrite=true"
71 exit 1
72 fi
73 if [ "$overwrite" == "delete" ]; then
71 exit 0 74 exit 0
72 fi 75 fi
73fi 76fi