Skip to content

Commit c9947fe

Browse files
committed
install-charon: prefer nix when it is available
1 parent 906d807 commit c9947fe

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/check-charon-install.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ if [[ "$1" == "--force" ]]; then
77
fi
88

99
rebuild() {
10-
if which rustup 2> /dev/null 1>&2; then
11-
make test
12-
elif which nix 2> /dev/null 1>&2; then
10+
if which nix 2> /dev/null 1>&2; then
1311
nix develop --command bash -c "make test"
12+
elif which rustup 2> /dev/null 1>&2; then
13+
make test
1414
else
1515
echo 'Error: Neither `rustup` nor `nix` appears to be installed. Install one or the other in order to build `charon`.'
1616
exit 1

0 commit comments

Comments
 (0)