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 33echo " Let's get you set up with Rustlings!"
44
55echo " Checking requirements..."
6- if [ -x " $( git) " ]
6+ if [ -x " $( command -v git) " ]
77then
88 echo " WARNING: Git does not seem to be installed."
99 echo " Please download Git using your package manager or over https://git-scm.com/!"
1212 echo " SUCCESS: Git is installed"
1313fi
1414
15- if [ -x " $( rustc) " ]
15+ if [ -x " $( command -v rustc) " ]
1616then
1717 echo " WARNING: Rust does not seem to be installed."
1818 echo " Please download Rust using https://rustup.rs!"
2121 echo " SUCCESS: Rust is installed"
2222fi
2323
24- if [ -x " $( cargo) " ]
24+ if [ -x " $( command -v cargo) " ]
2525then
2626 echo " WARNING: Cargo does not seem to be installed."
2727 echo " Please download Rust and Cargo using https://rustup.rs!"
You can’t perform that action at this time.
0 commit comments