Commit f41033d 1 parent 07d8483 commit f41033d Copy full SHA for f41033d
File tree 2 files changed +13
-4
lines changed
2 files changed +13
-4
lines changed Original file line number Diff line number Diff line change 20
20
BIN_DIR=$HOME /.local/bin
21
21
fi
22
22
if [ ! -f $BIN_DIR /just ]; then
23
- curl --proto ' =https' --tlsv1.2 -sSf https://just.systems/install.sh | bash -s -- --to " $BIN_DIR " || {
23
+ if [ " Windows_NT" = " ${OS:- } " ]; then
24
+ TARGET=" --target x86_64-pc-windows-msvc"
25
+ else
26
+ TARGET=" "
27
+ fi
28
+ curl --proto ' =https' --tlsv1.2 -sSf https://just.systems/install.sh | bash -s -- $TARGET --to " $BIN_DIR " || {
24
29
# CARGO_HOME is defined in configure-env.sh
25
30
export CARGO_HOME=${CARGO_HOME:- $HOME / .cargo/ }
26
31
export RUSTUP_HOME=" ${CARGO_HOME} /.rustup"
27
- ${DRIVERS_TOOLS} /.evergreen/install-rust.sh
32
+ . ${DRIVERS_TOOLS} /.evergreen/install-rust.sh
28
33
cargo install just
29
- mv $CARGO_HOME /just $BIN_DIR
34
+ if [ " Windows_NT" = " ${OS:- } " ]; then
35
+ mv $CARGO_HOME /just.exe $BIN_DIR /just
36
+ else
37
+ mv $CARGO_HOME /just $BIN_DIR
38
+ fi
30
39
}
31
40
fi
32
41
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
- set -o xtrace
3
+ set -eu
4
4
file=" $PROJECT_DIRECTORY /.evergreen/install-dependencies.sh"
5
5
# Don't use ${file} syntax here because evergreen treats it as an empty expansion.
6
6
[ -f " $file " ] && bash " $file " || echo " $file not available, skipping"
You can’t perform that action at this time.
0 commit comments