Skip to content

Commit

Permalink
Added support for absolute path as well in the CONTEXT
Browse files Browse the repository at this point in the history
  • Loading branch information
Aneesh-M-Bhat authored and openshift-merge-bot[bot] committed Aug 22, 2024
1 parent 23c3be7 commit 743840b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/s2i-generate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ phase "Inspecting source workspace '${WORKSPACES_SOURCE_PATH}' (PWD='${PWD}')"
[[ "${WORKSPACES_SOURCE_BOUND}" != "true" ]] &&
fail "Workspace 'source' is not bounded"

phase "Appending $PARAMS_CONTEXT with $WORKSPACES_SOURCE_PATH if not default"
[[ "$PARAMS_CONTEXT" != "." ]] &&
phase "Appending $PARAMS_CONTEXT with $WORKSPACES_SOURCE_PATH if it's relative"
[[ "$PARAMS_CONTEXT" != "." && "$PARAMS_CONTEXT" != /* ]] &&
PARAMS_CONTEXT="${WORKSPACES_SOURCE_PATH}/${PARAMS_CONTEXT}"

phase "Inspecting context '${PARAMS_CONTEXT}'"
Expand Down

0 comments on commit 743840b

Please sign in to comment.