Skip to content

Documentation: inline variables for curl command - #86

Merged
varungandhi-src merged 1 commit into
scip-ruby/masterfrom
olafurpg/readme
Aug 25, 2022
Merged

varungandhi-src merged 1 commit into
scip-ruby/masterfrom
olafurpg/readme

Conversation

@olafurpg

Copy link
Copy Markdown
Contributor

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

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
@varungandhi-src

Copy link
Copy Markdown
Contributor

Ah! This is a bash issue, but it works fine in fish. That's why I didn't notice it. Strange.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants