Skip to content

Commit

Permalink
cherrypick - Remove trailing slash from KUBEFLOW_REPO (#1664) (#1677)
Browse files Browse the repository at this point in the history
* Remove trailing slash from KUBEFLOW_REPO

* Parts of the script assume there is no trailing slash. So if we don't
  normalize things we have problems.

Related to #1663
  • Loading branch information
jlewi authored and k8s-ci-robot committed Oct 1, 2018
1 parent 6a69228 commit 25d6ec3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/kfctl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ createEnv() {
# a file for consistency across runs.
echo PLATFORM=${PLATFORM} >> ${ENV_FILE}
DEFAULT_KUBEFLOW_REPO="$( cd "${DIR}/.." >/dev/null && pwd )"
# Remove trailing slash from the repo.
KUBEFLOW_REPO=${KUBEFLOW_REPO%/}
echo KUBEFLOW_REPO=${KUBEFLOW_REPO:-"${DEFAULT_KUBEFLOW_REPO}"} >> ${ENV_FILE}
echo KUBEFLOW_VERSION=${KUBEFLOW_VERSION:-"master"} >> ${ENV_FILE}
echo KUBEFLOW_KS_DIR=${KUBEFLOW_KS_DIR:-"$(pwd)/ks_app"} >> ${ENV_FILE}
Expand Down

0 comments on commit 25d6ec3

Please sign in to comment.