File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change 14
14
fi
15
15
16
16
# Install just.
17
- if [ ! -f $HOME /.local/bin/just ]; then
18
- curl --proto ' =https' --tlsv1.2 -sSf https://just.systems/install.sh | bash -s -- --to " $HOME /.local/bin" || {
17
+ if [ " ${CI:- } " == " true" ]; then
18
+ BIN_DIR=$MONGODB_BINARIES
19
+ else
20
+ BIN_DIR=$HOME /.local/bin
21
+ fi
22
+ if [ ! -f $BIN_DIR /just ]; then
23
+ curl --proto ' =https' --tlsv1.2 -sSf https://just.systems/install.sh | bash -s -- --to " $BIN_DIR " || {
19
24
# CARGO_HOME is defined in configure-env.sh
20
25
export CARGO_HOME=${CARGO_HOME:- $HOME / .cargo/ }
21
26
export RUSTUP_HOME=" ${CARGO_HOME} /.rustup"
22
27
${DRIVERS_TOOLS} /.evergreen/install-rust.sh
23
28
cargo install just
24
- mv $CARGO_HOME /just $HOME /.local/bin
29
+ mv $CARGO_HOME /just $BIN_DIR
25
30
}
26
31
fi
27
32
Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ if [ -d .git ]; then
63
63
fi
64
64
65
65
# Ensure the pre-commit hook is installed.
66
- if ! -f .git/hooks/pre-commit ]; then
66
+ if [ ! -f .git/hooks/pre-commit ]; then
67
67
pre-commit install
68
68
fi
69
69
fi
You can’t perform that action at this time.
0 commit comments