Skip to content

Commit

Permalink
fix(installation): Fix rustlings installation check
Browse files Browse the repository at this point in the history
  • Loading branch information
miller-time committed Jun 9, 2019
1 parent 2089901 commit 7a252c4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,9 @@ git checkout -q tags/$Version
echo "Installing the 'rustlings' executable..."
cargo install --force --path .

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

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

0 comments on commit 7a252c4

Please sign in to comment.