Skip to content

Commit

Permalink
chore: fix: crc-support task target path for bundle wrong evaluation
Browse files Browse the repository at this point in the history
Signed-off-by: Adrian Riobo <[email protected]>
  • Loading branch information
adrianriobo committed Nov 27, 2024
1 parent 5ce3917 commit 142391d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion crc-support/tkn/task.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -110,12 +110,14 @@ spec:
fi
if [[ $(params.asset-name) == *'.crcbundle' ]]; then
# It is bundle
name=$(params.asset-name)
nameArr=(${name//_/ })
tPath+='/bundle/${nameArr[2]}'
tPath+="/bundle/${nameArr[2]}"
else
tPath+='/crc/$(params.crc-version)'
fi
cmd="${TARGET_FOLDER}/${runner} -targetPath $tPath "
cmd+="-aBaseURL $(params.asset-base-url) "
cmd+="-aName $(params.asset-name) "
Expand Down
3 changes: 2 additions & 1 deletion crc-support/tkn/tpl/task.tpl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,9 @@ spec:
fi
if [[ $(params.asset-name) == *'.crcbundle' ]]; then
# It is bundle
name=$(params.asset-name)
nameArr=(${name//_/ })
tPath+='/bundle/${nameArr[2]}'
tPath+="/bundle/${nameArr[2]}"
else
tPath+='/crc/$(params.crc-version)'
fi
Expand Down

0 comments on commit 142391d

Please sign in to comment.