diff --git a/action.yml b/action.yml index f5c1a43..9417a97 100644 --- a/action.yml +++ b/action.yml @@ -8,7 +8,7 @@ inputs: runs: using: "composite" steps: - - run: sudo bash ${{ github.action_path }}/install.sh -b /usr/local/bin -d ${TFCMT_VERSION} + - run: sudo bash ${{ github.action_path }}/install.sh -b /usr/local/bin -d ${GITHUB_COMMENT_VERSION} shell: bash env: GITHUB_COMMENT_VERSION: ${{ inputs.version }} diff --git a/install.sh b/install.sh index 9c77bf6..172561e 100644 --- a/install.sh +++ b/install.sh @@ -326,7 +326,7 @@ hash_sha256_verify() { BASENAME=${TARGET##*/} log_debug $BASENAME log_debug $TARGET - want=$(grep "${BASENAME}" "${checksums}" 2>/dev/null | tr '\t' ' ' | cut -d ' ' -f 1) + want=$(grep "${BASENAME}$" "${checksums}" 2>/dev/null | tr '\t' ' ' | cut -d ' ' -f 1) if [ -z "$want" ]; then log_err "hash_sha256_verify unable to find checksum for '${TARGET}' in '${checksums}'" return 1