mirror of
https://github.com/notohh/rustlings.git
synced 2024-11-25 14:57:32 -05:00
fix(installation): Fix rustlings installation check
This commit is contained in:
parent
2089901739
commit
7a252c4755
1 changed files with 1 additions and 2 deletions
|
@ -94,10 +94,9 @@ git checkout -q tags/$Version
|
||||||
echo "Installing the 'rustlings' executable..."
|
echo "Installing the 'rustlings' executable..."
|
||||||
cargo install --force --path .
|
cargo install --force --path .
|
||||||
|
|
||||||
if [ -x "$(rustlings)" ]
|
if ! [ -x "$(command -v rustlings)" ]
|
||||||
then
|
then
|
||||||
echo "WARNING: Please check that you have '~/.cargo/bin' in your PATH environment variable!"
|
echo "WARNING: Please check that you have '~/.cargo/bin' in your PATH environment variable!"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "All done! Run 'rustlings' to get started."
|
echo "All done! Run 'rustlings' to get started."
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue