Skip to content

Commit 11fe19d

Browse files
authored
Fix order of true/false in tests for executables
1b3469f has fixed the tests themselves, but now the original error shows itself.
1 parent 1b3469f commit 11fe19d

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

install.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,29 +5,29 @@ echo "Let's get you set up with Rustlings!"
55
echo "Checking requirements..."
66
if [ -x "$(command -v git)" ]
77
then
8+
echo "SUCCESS: Git is installed"
9+
else
810
echo "WARNING: Git does not seem to be installed."
911
echo "Please download Git using your package manager or over https://git-scm.com/!"
1012
exit 1
11-
else
12-
echo "SUCCESS: Git is installed"
1313
fi
1414

1515
if [ -x "$(command -v rustc)" ]
1616
then
17+
echo "SUCCESS: Rust is installed"
18+
else
1719
echo "WARNING: Rust does not seem to be installed."
1820
echo "Please download Rust using https://rustup.rs!"
1921
exit 1
20-
else
21-
echo "SUCCESS: Rust is installed"
2222
fi
2323

2424
if [ -x "$(command -v cargo)" ]
2525
then
26+
echo "SUCCESS: Cargo is installed"
27+
else
2628
echo "WARNING: Cargo does not seem to be installed."
2729
echo "Please download Rust and Cargo using https://rustup.rs!"
2830
exit 1
29-
else
30-
echo "SUCCESS: Cargo is installed"
3131
fi
3232

3333
# Function that compares two versions strings v1 and v2 given in arguments (e.g 1.31 and 1.33.0).

0 commit comments

Comments
 (0)