Skip to content

Commit cf78396

Browse files
committed
fix handling of bin dir
1 parent bb01654 commit cf78396

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.evergreen/scripts/install-dependencies.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,11 @@ if [ -f $HERE/env.sh ]; then
1010
. $HERE/env.sh
1111
fi
1212

13-
# Set a default bin directory.
14-
PYMONGO_BIN_DIR="${PYMONGO_BIN_DIR:-$HOME/.local/bin}"
13+
# Set up the default bin directory.
14+
if [ -z "${PYMONGO_BIN_DIR:-}" ]; then
15+
PYMONGO_BIN_DIR="$HOME/.local/bin"
16+
export PATH="$PYMONGO_BIN_DIR:$PATH"
17+
fi
1518

1619
# Helper function to pip install a dependency using a temporary python env.
1720
function _pip_install() {

0 commit comments

Comments
 (0)