Skip to content

Commit d4a3221

Browse files
committed
cleanup
1 parent d4a10a9 commit d4a3221

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.evergreen/scripts/setup-dev-env.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ HERE=$(dirname ${BASH_SOURCE:-$0})
66
HERE="$( cd -- "$HERE" > /dev/null 2>&1 && pwd )"
77
ROOT=$(dirname "$(dirname $HERE)")
88

9-
# Set up the uv environment if we're running on evergreen.
9+
# Set up the uv environment if indicated.
1010
if [ "${1:-}" == "ensure-uv" ]; then
1111
bash $HERE/setup-uv-python.sh
1212
fi
@@ -24,8 +24,8 @@ fi
2424
# Ensure dependencies are installed.
2525
bash $HERE/install-dependencies.sh
2626

27-
# Only run the next part if not running on CI.
28-
if [ -z "${CI:-}" ]; then
27+
# Only run the next part if not running on CI and there is a git checkout.
28+
if [ -z "${CI:-}" ] && [ -f $HERE/.git ]; then
2929
# Add the default install path to the path if needed.
3030
if [ -z "${PYMONGO_BIN_DIR:-}" ]; then
3131
export PATH="$PATH:$HOME/.local/bin"

0 commit comments

Comments
 (0)