Merge pull request #137 from mgeier/patch-1

Fix order of true/false in tests for executables
This commit is contained in:
komaeda 2019-03-28 12:11:35 +01:00 committed by GitHub
commit 8c008a0e7d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -5,29 +5,29 @@ echo "Let's get you set up with Rustlings!"
echo "Checking requirements..." echo "Checking requirements..."
if [ -x "$(command -v git)" ] if [ -x "$(command -v git)" ]
then then
echo "SUCCESS: Git is installed"
else
echo "WARNING: Git does not seem to be installed." echo "WARNING: Git does not seem to be installed."
echo "Please download Git using your package manager or over https://git-scm.com/!" echo "Please download Git using your package manager or over https://git-scm.com/!"
exit 1 exit 1
else
echo "SUCCESS: Git is installed"
fi fi
if [ -x "$(command -v rustc)" ] if [ -x "$(command -v rustc)" ]
then then
echo "SUCCESS: Rust is installed"
else
echo "WARNING: Rust does not seem to be installed." echo "WARNING: Rust does not seem to be installed."
echo "Please download Rust using https://rustup.rs!" echo "Please download Rust using https://rustup.rs!"
exit 1 exit 1
else
echo "SUCCESS: Rust is installed"
fi fi
if [ -x "$(command -v cargo)" ] if [ -x "$(command -v cargo)" ]
then then
echo "SUCCESS: Cargo is installed"
else
echo "WARNING: Cargo does not seem to be installed." echo "WARNING: Cargo does not seem to be installed."
echo "Please download Rust and Cargo using https://rustup.rs!" echo "Please download Rust and Cargo using https://rustup.rs!"
exit 1 exit 1
else
echo "SUCCESS: Cargo is installed"
fi fi
# Function that compares two versions strings v1 and v2 given in arguments (e.g 1.31 and 1.33.0). # Function that compares two versions strings v1 and v2 given in arguments (e.g 1.31 and 1.33.0).