Closed bhearsum closed 5 years ago
i believe we've had the same kind of issue in #118, it could be that it's some kind of nonstandard command suggestion. i've wanted to replace the [ -x "$(rustc)" ]
check with [ -x "$(command -v rustc)" ]
anyways, but i'm not completely sure on whether that would fix this particular case
It looks like it works on my system, for what it's worth:
bhearsum@voot:~/usr/rustlings$ head -n15 install.sh
#!/usr/bin/env bash
echo "Let's get you set up with Rustlings!"
echo "Checking requirements..."
if [ -x "$(git)" ]
then
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)" ]
bhearsum@voot:~/usr/rustlings$ bash install.sh foo
Let's get you set up with Rustlings!
Checking requirements...
SUCCESS: Git is installed
WARNING: Rust does not seem to be installed.
Please download Rust using https://rustup.rs!
this should theoretically be closed in 1b3469f!
I just tried to install rustlings and it reported success finding rustc/cargo, but there were errors shown:
I tried the check by hand, which actually showed different output entirely:
Which makes me wonder if it's something to do with Ubuntu's command suggestions?