diff --git a/scripts/tag-preview-build b/scripts/tag-preview-build index 5692892dc..1fc9316e3 100755 --- a/scripts/tag-preview-build +++ b/scripts/tag-preview-build @@ -6,5 +6,10 @@ RELEASE_VERSION=${CURRENT_VERSION%%-SNAPSHOT} PREVIEW_TAG="${RELEASE_VERSION}-preview" printf "preview tag: '%s'\n" "${PREVIEW_TAG}" -git tag "${PREVIEW_TAG}" +if [ "$1" == "-f" ] +then + git tag -f "${PREVIEW_TAG}" +else + git tag "${PREVIEW_TAG}" +fi