Skip to content

Commit de30bfe

Browse files
committed
syntax
1 parent 5525c77 commit de30bfe

File tree

1 file changed

+13
-15
lines changed

1 file changed

+13
-15
lines changed

.evergreen/scripts/install-dependencies.sh

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -39,22 +39,20 @@ function _pip_install() {
3939

4040
# Try to use the binaries in the toolchain if available.
4141
if [ -n "${CI}" ]; then
42-
export PATH
43-
case "${OSTYPE:?}" in
44-
cygwin)
45-
PATH="/cygdrive/c/Python/Current:${PATH:-}"
46-
;;
47-
darwin*)
48-
PATH="/Library/Frameworks/Python.Framework/Versions/Current/bin:${PATH:-}"
49-
;;
50-
*)
51-
PATH="/opt/python/Current/bin:${PATH:-}"
52-
;;
53-
esac
54-
fi
42+
export PATH
43+
case "${OSTYPE:?}" in
44+
cygwin)
45+
PATH="/cygdrive/c/Python/Current:${PATH:-}"
46+
;;
47+
darwin*)
48+
PATH="/Library/Frameworks/Python.Framework/Versions/Current/bin:${PATH:-}"
49+
;;
50+
*)
51+
PATH="/opt/python/Current/bin:${PATH:-}"
52+
;;
53+
esac
5554
fi
5655

57-
5856
# Ensure just is installed.
5957
if ! command -v just >/dev/null 2>&1; then
6058
# On most systems we can install directly.
@@ -71,7 +69,7 @@ if ! command -v just >/dev/null 2>&1; then
7169
fi
7270

7371
# Fall back to installing uv.
74-
if [ ! command -v uv >/dev/null 2>&1 ]; then
72+
if ! command -v uv >/dev/null 2>&1; then
7573
echo "Installing uv..."
7674
# On most systems we can install directly.
7775
curl -LsSf https://astral.sh/uv/install.sh | env UV_INSTALL_DIR="$_BIN_DIR" INSTALLER_NO_MODIFY_PATH=1 sh || {

0 commit comments

Comments
 (0)