Skip to content

Commit 1299f22

Browse files
authored
Merge pull request #9 from alezkv/patch-2
Fix ability to set version from input
2 parents 53852e9 + 86056dd commit 1299f22

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ inputs:
88
runs:
99
using: "composite"
1010
steps:
11-
- run: sudo bash ${{ github.action_path }}/install.sh -b /usr/local/bin -d ${TFCMT_VERSION}
11+
- run: sudo bash ${{ github.action_path }}/install.sh -b /usr/local/bin -d ${GITHUB_COMMENT_VERSION}
1212
shell: bash
1313
env:
1414
GITHUB_COMMENT_VERSION: ${{ inputs.version }}

install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ hash_sha256_verify() {
326326
BASENAME=${TARGET##*/}
327327
log_debug $BASENAME
328328
log_debug $TARGET
329-
want=$(grep "${BASENAME}" "${checksums}" 2>/dev/null | tr '\t' ' ' | cut -d ' ' -f 1)
329+
want=$(grep "${BASENAME}$" "${checksums}" 2>/dev/null | tr '\t' ' ' | cut -d ' ' -f 1)
330330
if [ -z "$want" ]; then
331331
log_err "hash_sha256_verify unable to find checksum for '${TARGET}' in '${checksums}'"
332332
return 1

0 commit comments

Comments
 (0)