Skip to content

Commit 8972e8f

Browse files
authored
Merge pull request #1000 from merelymyself/patch-1
Checks for rustup install in install.sh.
2 parents 75b09dd + 5b94016 commit 8972e8f

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

install.sh

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,21 @@ else
2525
exit 1
2626
fi
2727

28+
if [ -x "$(command -v rustup)" ]
29+
then
30+
echo "SUCCESS: rustup is installed"
31+
else
32+
echo "ERROR: rustup does not seem to be installed."
33+
echo "Please download rustup using https://rustup.rs!"
34+
exit 1
35+
fi
36+
2837
if [ -x "$(command -v rustc)" ]
2938
then
3039
echo "SUCCESS: Rust is installed"
3140
else
3241
echo "ERROR: Rust does not seem to be installed."
33-
echo "Please download Rust using https://rustup.rs!"
42+
echo "Please download Rust using rustup!"
3443
exit 1
3544
fi
3645

@@ -39,7 +48,7 @@ then
3948
echo "SUCCESS: Cargo is installed"
4049
else
4150
echo "ERROR: Cargo does not seem to be installed."
42-
echo "Please download Rust and Cargo using https://rustup.rs!"
51+
echo "Please download Rust and Cargo using rustup!"
4352
exit 1
4453
fi
4554

0 commit comments

Comments
 (0)