diff options
| author | bors <bors@rust-lang.org> | 2019-06-11 13:53:07 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2019-06-11 13:53:07 +0000 |
| commit | b8d59d699bed76b6be95d1ed41881d00d4b0d533 (patch) | |
| tree | 2f8b193043491b70b88c31e6cdca2e18694d26f7 /exercises/move_semantics/README.md | |
| parent | 5586613eec345e6bf3bd47df8acc71c24766b70e (diff) | |
| parent | 7a252c475551486efb52f949b8af55803b700bc6 (diff) | |
Auto merge of #169 - miller-time:fix-install-script, r=komaeda
fix(installation): Fix rustlings installation check
fixes #147
I did some quick testing with the `-x` check:
```sh
if [ -x "$(notrustlings)" ]
then
echo "notrustlings does not exist"
else
echo "notrustlings appears to exist!"
notrustlings
fi
```
which produced:
```
./test.sh: line 12: notrustlings: command not found
notrustlings appears to exist!
./test.sh: line 17: notrustlings: command not found
```
(consistent with comments in issue)
Using `if ! [ -x "$(command -v <command>)" ]` appears to be the standard way to perform this type of check.
Diffstat (limited to 'exercises/move_semantics/README.md')
0 files changed, 0 insertions, 0 deletions
