diff --git a/.gitea/scripts/add-annotations.sh b/.gitea/scripts/add-annotations.sh index d9a72e7..7794f41 100755 --- a/.gitea/scripts/add-annotations.sh +++ b/.gitea/scripts/add-annotations.sh @@ -4,11 +4,10 @@ set -e CHART_FILE="Chart.yaml" if [ ! -f "${CHART_FILE}" ]; then - echo "ERROR: ${CHART_FILE} not found!" + echo "ERROR: ${CHART_FILE} not found!" 1>&2 exit 1 fi - DEFAULT_NEW_TAG="$(git describe --abbrev=0)" DEFAULT_OLD_TAG="$(git describe --abbrev=0 --tags "$(git rev-list --tags --skip=1 --max-count=1)")" @@ -19,7 +18,7 @@ if [ -z "${1}" ]; then fi while [ -z "$(git tag --list "${OLD_TAG}")" ]; do - echo "ERROR: Tag '${OLD_TAG}' not found!" + echo "ERROR: Tag '${OLD_TAG}' not found!" 1>&2 read -p "Enter start tag [${DEFAULT_OLD_TAG}]: " OLD_TAG if [ -z "${OLD_TAG}" ]; then OLD_TAG="${DEFAULT_OLD_TAG}" @@ -28,7 +27,7 @@ if [ -z "${1}" ]; then else OLD_TAG=${1} if [ -z "$(git tag --list "${OLD_TAG}")" ]; then - echo "ERROR: Tag '${OLD_TAG}' not found!" + echo "ERROR: Tag '${OLD_TAG}' not found!" 1>&2 exit 1 fi fi @@ -40,7 +39,7 @@ if [ -z "${2}" ]; then fi while [ -z "$(git tag --list "${NEW_TAG}")" ]; do - echo "ERROR: Tag '${NEW_TAG}' not found!" + echo "ERROR: Tag '${NEW_TAG}' not found!" 1>&2 read -p "Enter end tag [${DEFAULT_NEW_TAG}]: " NEW_TAG if [ -z "${NEW_TAG}" ]; then NEW_TAG="${DEFAULT_NEW_TAG}" @@ -50,7 +49,7 @@ else NEW_TAG=${2} if [ -z "$(git tag --list "${NEW_TAG}")" ]; then - echo "ERROR: Tag '${NEW_TAG}' not found!" + echo "ERROR: Tag '${NEW_TAG}' not found!" 1>&2 exit 1 fi fi