You've already forked prometheus-fail2ban-exporter-charts
							
							chore(ci): write error message to stderr
This commit is contained in:
		| @@ -4,11 +4,10 @@ set -e | |||||||
|  |  | ||||||
| CHART_FILE="Chart.yaml" | CHART_FILE="Chart.yaml" | ||||||
| if [ ! -f "${CHART_FILE}" ]; then | if [ ! -f "${CHART_FILE}" ]; then | ||||||
|   echo "ERROR: ${CHART_FILE} not found!" |   echo "ERROR: ${CHART_FILE} not found!" 1>&2 | ||||||
|   exit 1 |   exit 1 | ||||||
| fi | fi | ||||||
|  |  | ||||||
|  |  | ||||||
| DEFAULT_NEW_TAG="$(git describe --abbrev=0)" | DEFAULT_NEW_TAG="$(git describe --abbrev=0)" | ||||||
| DEFAULT_OLD_TAG="$(git describe --abbrev=0 --tags "$(git rev-list --tags --skip=1 --max-count=1)")" | 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 |   fi | ||||||
|  |  | ||||||
|   while [ -z "$(git tag --list "${OLD_TAG}")" ]; do |   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 |     read -p "Enter start tag [${DEFAULT_OLD_TAG}]: " OLD_TAG | ||||||
|     if [ -z "${OLD_TAG}" ]; then |     if [ -z "${OLD_TAG}" ]; then | ||||||
|       OLD_TAG="${DEFAULT_OLD_TAG}" |       OLD_TAG="${DEFAULT_OLD_TAG}" | ||||||
| @@ -28,7 +27,7 @@ if [ -z "${1}" ]; then | |||||||
| else | else | ||||||
|   OLD_TAG=${1} |   OLD_TAG=${1} | ||||||
|   if [ -z "$(git tag --list "${OLD_TAG}")" ]; then |   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 |     exit 1 | ||||||
|   fi |   fi | ||||||
| fi | fi | ||||||
| @@ -40,7 +39,7 @@ if [ -z "${2}" ]; then | |||||||
|   fi |   fi | ||||||
|  |  | ||||||
|   while [ -z "$(git tag --list "${NEW_TAG}")" ]; do |   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 |     read -p "Enter end tag [${DEFAULT_NEW_TAG}]: " NEW_TAG | ||||||
|     if [ -z "${NEW_TAG}" ]; then |     if [ -z "${NEW_TAG}" ]; then | ||||||
|       NEW_TAG="${DEFAULT_NEW_TAG}" |       NEW_TAG="${DEFAULT_NEW_TAG}" | ||||||
| @@ -50,7 +49,7 @@ else | |||||||
|   NEW_TAG=${2} |   NEW_TAG=${2} | ||||||
|  |  | ||||||
|   if [ -z "$(git tag --list "${NEW_TAG}")" ]; then |   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 |     exit 1 | ||||||
|   fi |   fi | ||||||
| fi | fi | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user