Skip to content

Commit 7a252c4

Browse files
committed
fix(installation): Fix rustlings installation check
1 parent 2089901 commit 7a252c4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

install.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,9 @@ git checkout -q tags/$Version
9494
echo "Installing the 'rustlings' executable..."
9595
cargo install --force --path .
9696

97-
if [ -x "$(rustlings)" ]
97+
if ! [ -x "$(command -v rustlings)" ]
9898
then
9999
echo "WARNING: Please check that you have '~/.cargo/bin' in your PATH environment variable!"
100100
fi
101101

102102
echo "All done! Run 'rustlings' to get started."
103-

0 commit comments

Comments
 (0)