We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ca2421d commit dbbb15aCopy full SHA for dbbb15a
1 file changed
svn-push
@@ -66,12 +66,12 @@ if git show-ref --tags --quiet --verify -- "refs/tags/$plugin_version"; then
66
has_tag=1
67
fi
68
69
-if [ -z "$has_tag" ] && [ -z "$force" ]; then
+if [ -n "$has_tag" ] && [ -z "$force" ]; then
70
echo "Plugin version $plugin_version already tagged. Please bump version and try again, or supply -f"
71
exit 1
72
73
74
-if [ -n "$has_tag" ]; then
+if [ -z "$has_tag" ]; then
75
echo "Tagging plugin version $plugin_version"
76
git tag "$plugin_version" master
77
git push origin "$plugin_version"
0 commit comments