mirror of
https://github.com/notohh/rustlings.git
synced 2024-11-22 05:52:23 -05:00
check for rustup install
This commit is contained in:
parent
75b09dd69a
commit
5b94016585
1 changed files with 11 additions and 2 deletions
13
install.sh
13
install.sh
|
@ -25,12 +25,21 @@ else
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ -x "$(command -v rustup)" ]
|
||||||
|
then
|
||||||
|
echo "SUCCESS: rustup is installed"
|
||||||
|
else
|
||||||
|
echo "ERROR: rustup does not seem to be installed."
|
||||||
|
echo "Please download rustup using https://rustup.rs!"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
if [ -x "$(command -v rustc)" ]
|
if [ -x "$(command -v rustc)" ]
|
||||||
then
|
then
|
||||||
echo "SUCCESS: Rust is installed"
|
echo "SUCCESS: Rust is installed"
|
||||||
else
|
else
|
||||||
echo "ERROR: Rust does not seem to be installed."
|
echo "ERROR: Rust does not seem to be installed."
|
||||||
echo "Please download Rust using https://rustup.rs!"
|
echo "Please download Rust using rustup!"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -39,7 +48,7 @@ then
|
||||||
echo "SUCCESS: Cargo is installed"
|
echo "SUCCESS: Cargo is installed"
|
||||||
else
|
else
|
||||||
echo "ERROR: Cargo does not seem to be installed."
|
echo "ERROR: Cargo does not seem to be installed."
|
||||||
echo "Please download Rust and Cargo using https://rustup.rs!"
|
echo "Please download Rust and Cargo using rustup!"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue