File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 3
3
echo " Let's get you set up with Rustlings!"
4
4
5
5
echo " Checking requirements..."
6
- if [ -x " $( git) " ]
6
+ if [ -x " $( command -v git) " ]
7
7
then
8
8
echo " WARNING: Git does not seem to be installed."
9
9
echo " Please download Git using your package manager or over https://git-scm.com/!"
12
12
echo " SUCCESS: Git is installed"
13
13
fi
14
14
15
- if [ -x " $( rustc) " ]
15
+ if [ -x " $( command -v rustc) " ]
16
16
then
17
17
echo " WARNING: Rust does not seem to be installed."
18
18
echo " Please download Rust using https://rustup.rs!"
21
21
echo " SUCCESS: Rust is installed"
22
22
fi
23
23
24
- if [ -x " $( cargo) " ]
24
+ if [ -x " $( command -v cargo) " ]
25
25
then
26
26
echo " WARNING: Cargo does not seem to be installed."
27
27
echo " Please download Rust and Cargo using https://rustup.rs!"
You can’t perform that action at this time.
0 commit comments