Skip to content

Commit

Permalink
Address review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
pitrou committed Sep 2, 2024
1 parent 8be0633 commit 9118ef1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions ci/scripts/install_gcs_testbench.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,13 @@ fi
export PIP_BREAK_SYSTEM_PACKAGES=1
${PIPX_BASE_PYTHON} -m pip install -U pipx

pipx_flags="--verbose --python ${PIPX_PYTHON}"
pipx_flags=(--verbose --python ${PIPX_PYTHON})
if [[ $(id -un) == "root" ]]; then
# Install globally as /root/.local/bin is typically not in $PATH
pipx_flags="${pipx_flags} --global"
pipx_flags+=(--global)
fi
if [[ ! -z "${PIPX_PIP_ARGS}" ]]; then
pipx_flags="${pipx_flags} --pip-args '${PIPX_PIP_ARGS}'"
if [[ -n "${PIPX_PIP_ARGS}" ]]; then
pipx_flags+=(--pip-args "'${PIPX_PIP_ARGS}'")
fi
${PIPX_BASE_PYTHON} -m pipx install ${pipx_flags} \
${PIPX_BASE_PYTHON} -m pipx install ${pipx_flags[@]} \
"https://github.com/googleapis/storage-testbench/archive/${version}.tar.gz"

0 comments on commit 9118ef1

Please sign in to comment.