diff options
| author | Matthias Geier <Matthias.Geier@gmail.com> | 2019-03-28 11:53:29 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-03-28 11:53:29 +0100 |
| commit | 11fe19d08a2993654b71ec30b996ee48ac06663e (patch) | |
| tree | 34d006ff76cc6bdeac7fb74fe0da12d5563d67bd /install.sh | |
| parent | 1b3469f236bc6979c27f6e1a04e4138a88e55de3 (diff) | |
Fix order of true/false in tests for executables
1b3469f236bc6979c27f6e1a04e4138a88e55de3 has fixed the tests themselves, but now the original error shows itself.
Diffstat (limited to 'install.sh')
| -rwxr-xr-x | install.sh | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -5,29 +5,29 @@ echo "Let's get you set up with Rustlings!" echo "Checking requirements..." if [ -x "$(command -v git)" ] then + echo "SUCCESS: Git is installed" +else echo "WARNING: Git does not seem to be installed." echo "Please download Git using your package manager or over https://git-scm.com/!" exit 1 -else - echo "SUCCESS: Git is installed" fi if [ -x "$(command -v rustc)" ] then + echo "SUCCESS: Rust is installed" +else echo "WARNING: Rust does not seem to be installed." echo "Please download Rust using https://rustup.rs!" exit 1 -else - echo "SUCCESS: Rust is installed" fi if [ -x "$(command -v cargo)" ] then + echo "SUCCESS: Cargo is installed" +else echo "WARNING: Cargo does not seem to be installed." echo "Please download Rust and Cargo using https://rustup.rs!" exit 1 -else - echo "SUCCESS: Cargo is installed" fi # Function that compares two versions strings v1 and v2 given in arguments (e.g 1.31 and 1.33.0). |
