From 63e4bf8d14f06e2cf410b85e709f3d0c574192a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=93lafur=20P=C3=A1ll=20Geirsson?= Date: Thu, 25 Aug 2022 15:49:03 +0200 Subject: [PATCH] Documentation: inline variables for `curl` command MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit I got an error with the old command ``` ❯ OS="$(uname -s | tr '[:upper:]' '[:lower:]')" RELEASE_URL="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/sourcegraph/scip-ruby/releases/latest/download" curl -L "$RELEASE_URL/scip-ruby-x86_64-$OS" -o scip-ruby && chmod +x scip-ruby curl: (3) URL using bad/illegal format or missing URL ``` Inlining the variables made the download succeed --- README.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/README.md b/README.md index 2b9b37f85..b63478cc3 100644 --- a/README.md +++ b/README.md @@ -70,9 +70,7 @@ You can download a and run it directly, similar to invoking Sorbet. ```bash -OS="$(uname -s | tr '[:upper:]' '[:lower:]')" \ -RELEASE_URL="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/sourcegraph/scip-ruby/releases/latest/download" \ -curl -L "$RELEASE_URL/scip-ruby-x86_64-$OS" -o scip-ruby && chmod +x scip-ruby +curl -L "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/sourcegraph/scip-ruby/releases/latest/download/scip-ruby-x86_64-$(uname -s | tr '[:upper:]' '[:lower:]')" -o scip-ruby && chmod +x scip-ruby # If using in CI with 'set -e', make sure to wrap the # scip-ruby invocation in 'set +e' followed by 'set -e'