diff options
| author | liv <mokou@fastmail.com> | 2023-03-10 17:27:53 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-03-10 17:27:53 +0100 |
| commit | 2f34370f2fd3e97daaf0f097e66ae2325730dbcf (patch) | |
| tree | 848431be04c09a071106b7d0c3f52d3575b7aff3 | |
| parent | 94799b1e98d78c561daf694de6bacb1a4e44d894 (diff) | |
| parent | 6c5ba7cc013762be48c1a72f1060979296c78e4b (diff) | |
Merge pull request #1402 from MahdiBM/patch-1
Better error message when failing
| -rwxr-xr-x | install.sh | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -141,7 +141,7 @@ git clone -q https://github.com/rust-lang/rustlings "$Path" cd "$Path" -Version=$(curl -s https://api.github.com/repos/rust-lang/rustlings/releases/latest | ${PY} -c "import json,sys;obj=json.load(sys.stdin);print(obj['tag_name']);") +Version=$(curl -s https://api.github.com/repos/rust-lang/rustlings/releases/latest | ${PY} -c "import json,sys;obj=json.load(sys.stdin);print(obj['tag_name']) if 'tag_name' in obj else sys.exit(f\"Error: {obj['message']}\");") CargoBin="${CARGO_HOME:-$HOME/.cargo}/bin" if [[ -z ${Version} ]] |
