Skip to content

Commit

Permalink
[crc-support] fix: task using single quotes do not evaluate as expecting
Browse files Browse the repository at this point in the history
This commit fix the issue where the username is not evaluated as part of the target-path giving a wrong value when used with bundles / binaries.

Signed-off-by: Adrian Riobo <[email protected]>
  • Loading branch information
adrianriobo committed Nov 29, 2024
1 parent a2bff80 commit 97a5e36
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crc-support/tkn/task.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ spec:
runner="run.ps1"
fi
# Path for assets on remote target
tPath='/Users/${TARGET_HOST_USERNAME}/OpenshiftLocal'
tPath="/Users/${TARGET_HOST_USERNAME}/OpenshiftLocal"
if [[ $(params.os) == 'linux' ]]; then
tPath="/home/${TARGET_HOST_USERNAME}/OpenshiftLocal"
fi
Expand All @@ -114,7 +114,7 @@ spec:
nameArr=(${name//_/ })
tPath+="/bundle/${nameArr[2]}"
else
tPath+='/crc/$(params.crc-version)'
tPath+="/crc/$(params.crc-version)"
fi
Expand Down

0 comments on commit 97a5e36

Please sign in to comment.