Skip to content

Commit

Permalink
update tag.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
gertd committed Oct 9, 2021
1 parent 5ef24c1 commit 2e569a5
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions scripts/tag.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
[ -z "${INPUT_VERBOSITY}" ] && INPUT_VERBOSITY="error"

# validate if values are set
[ -z "${INPUT_SOURCE_TAG}" ] && exit "INPUT_SOURCE_TAG is not set, exiting" && exit 2
[ -z "${INPUT_TARGET_TAG}" ] && echo "INPUT_TARGET_TAG is not set, exiting" && exit 2
[ -z "${INPUT_SOURCE-TAG}" ] && exit "INPUT_SOURCE-TAG is not set, exiting" && exit 2
[ -z "${INPUT_TARGET-TAG}" ] && echo "INPUT_TARGET-TAG is not set, exiting" && exit 2
[ -z "${INPUT_VERBOSITY}" ] && exit "INPUT_VERBOSITY is not set, exiting" && exit 2

VERBOSITY=0
Expand All @@ -28,8 +28,8 @@ esac
echo "POLICY-SAVE $(/app/policy version | sed 's/Policy CLI.//g')"
printf "\n"
printf "\n"
echo "INPUT_SOURCE_TAG ${INPUT_SOURCE_TAG}"
echo "INPUT_TARGET_TAG ${INPUT_TARGET_TAG}"
echo "INPUT_SOURCE-TAG ${INPUT_SOURCE-TAG}"
echo "INPUT_TARGET-TAG ${INPUT_TARGET-TAG}"
echo "INPUT_VERBOSITY ${INPUT_VERBOSITY} (${VERBOSITY})"
printf "\n"

Expand All @@ -39,7 +39,7 @@ printf "\n"
e_code=0

# construct commandline arguments
CMD="/app/policy tag ${INPUT_SOURCE_TAG} ${INPUT_TARGET_TAG} --verbosity=${VERBOSITY}"
CMD="/app/policy tag ${INPUT_SOURCE-TAG} ${INPUT_TARGET-TAG} --verbosity=${VERBOSITY}"

# execute command
eval "$CMD" || e_code=1
Expand Down

0 comments on commit 2e569a5

Please sign in to comment.