Skip to content
This repository has been archived by the owner on Feb 1, 2021. It is now read-only.

Commit

Permalink
Merge pull request #21 from edshelton/patch-1
Browse files Browse the repository at this point in the history
Fix broken sed expression and #20
  • Loading branch information
stefanprodan committed Jan 2, 2020
2 parents b577de0 + 954e009 commit a0766e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hrval.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ function clone {
ORIGIN=$(git rev-parse --show-toplevel)
GIT_REPO=$(yq r ${1} spec.chart.git)
if [[ -n "${GITHUB_TOKEN}" ]]; then
BASE_URL=$(echo "${GIT_REPO}" | sed 's/ssh:\/\/git@//')
BASE_URL=$(echo "${GIT_REPO}" | sed -e 's/ssh:\/\///' -e 's/git@//' -e 's/:/\//')
GIT_REPO="https://${GITHUB_TOKEN}:x-oauth-basic@${BASE_URL}"
fi
GIT_REF=$(yq r ${1} spec.chart.ref)
Expand Down

0 comments on commit a0766e8

Please sign in to comment.