From 4c4c1f1c65da73d5dfbf2deb9ca735625a2124ef Mon Sep 17 00:00:00 2001 From: Manuel Leonhardt Date: Tue, 24 Sep 2024 21:00:39 +0200 Subject: [PATCH] fix: respect user-defined PIPX_BIN_DIR If pipx is already installed in the base image, it's likely that PIPX_BIN_DIR is set to a custom location such as /usr/local/bin. Since this script doesn't yet support --global, this at least adds support for user-defined PIPX_BIN_DIRs. Without this support, the script would create broken symlinks. --- src/pipx-package/install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pipx-package/install.sh b/src/pipx-package/install.sh index f2b9c28dd..d52e8df52 100755 --- a/src/pipx-package/install.sh +++ b/src/pipx-package/install.sh @@ -86,7 +86,7 @@ install_via_pipx() { export PIP_CACHE_DIR=/tmp/pip-tmp/cache export PIPX_HOME=${PIPX_HOME:-"/usr/local/py-utils"} - export PIPX_BIN_DIR="${PIPX_HOME}/bin" + export PIPX_BIN_DIR="${PIPX_BIN_DIR:-${PIPX_HOME}/bin}" mkdir -p "${PIPX_HOME}" _install_pipx() {