We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 94799b1 + 6c5ba7c commit 2f34370Copy full SHA for 2f34370
install.sh
@@ -141,7 +141,7 @@ git clone -q https://github.com/rust-lang/rustlings "$Path"
141
142
cd "$Path"
143
144
-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']}\");")
145
CargoBin="${CARGO_HOME:-$HOME/.cargo}/bin"
146
147
if [[ -z ${Version} ]]
0 commit comments