File tree Expand file tree Collapse file tree 2 files changed +9
-8
lines changed Expand file tree Collapse file tree 2 files changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -5,26 +5,27 @@ set -eu
5
5
# Install just.
6
6
# On Evergreen jobs, "CI" will be set, and we don't want to write to $HOME.
7
7
if [ " ${CI:- } " == " true" ]; then
8
- BIN_DIR =${DRIVERS_TOOLS_BINARIES:- }
8
+ _BIN_DIR =${DRIVERS_TOOLS_BINARIES:- }
9
9
else
10
- BIN_DIR =$HOME /.local/bin
10
+ _BIN_DIR =$HOME /.local/bin
11
11
fi
12
12
if [ ! -f $BIN_DIR /just ]; then
13
13
if [ " Windows_NT" = " ${OS:- } " ]; then
14
- TARGET =" --target x86_64-pc-windows-msvc"
14
+ _TARGET =" --target x86_64-pc-windows-msvc"
15
15
else
16
- TARGET =" "
16
+ _TARGET =" "
17
17
fi
18
- curl --proto ' =https' --tlsv1.2 -sSf https://just.systems/install.sh | bash -s -- $TARGET --to " $BIN_DIR " || {
18
+ curl --proto ' =https' --tlsv1.2 -sSf https://just.systems/install.sh | bash -s -- $_TARGET --to " $_BIN_DIR " || {
19
19
# CARGO_HOME is defined in configure-env.sh
20
20
export CARGO_HOME=${CARGO_HOME:- $HOME / .cargo/ }
21
21
export RUSTUP_HOME=" ${CARGO_HOME} /.rustup"
22
22
. ${DRIVERS_TOOLS} /.evergreen/install-rust.sh
23
23
cargo install just
24
24
if [ " Windows_NT" = " ${OS:- } " ]; then
25
- mv $CARGO_HOME /just.exe $BIN_DIR /just
25
+ mv $CARGO_HOME /just.exe $_BIN_DIR /just
26
26
else
27
- mv $CARGO_HOME /just $BIN_DIR
27
+ mv $CARGO_HOME /just $_BIN_DIR
28
28
fi
29
+ export PATH=" $_BIN_DIR :$PATH "
29
30
}
30
31
fi
Original file line number Diff line number Diff line change 17
17
BIN_DIR=.venv/bin
18
18
fi
19
19
20
- bash $HERE /install-dependencies.sh
20
+ . $HERE /install-dependencies.sh
21
21
22
22
# Ensure there is a python venv.
23
23
if [ ! -d $BIN_DIR ]; then
You can’t perform that action at this time.
0 commit comments