Skip to content

Commit

Permalink
Fix conditional expression for setting TFSEC_VERSION (#36)
Browse files Browse the repository at this point in the history
* fix: use double brackets for conditional with &&

* fix: typo in comment
  • Loading branch information
sivapalan authored Nov 3, 2022
1 parent 9d5437d commit 8356784
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ fi
# default to latest
TFSEC_VERSION="latest"

# if INPUT_TFSEC_VERSION set and not latests
if [ -n "${INPUT_TFSEC_VERSION}" && "$INPUT_TFSEC_VERSION" != "latest" ]; then
# if INPUT_TFSEC_VERSION set and not latest
if [[ -n "${INPUT_TFSEC_VERSION}" && "$INPUT_TFSEC_VERSION" != "latest" ]]; then
TFSEC_VERSION="tags/${INPUT_TFSEC_VERSION}"
fi

Expand Down

0 comments on commit 8356784

Please sign in to comment.