Commit ed70ee3
authored
Make curl in install scripts show errors and exit with non-zero status (#150)
Only `-f` and `-S` are new.
Both these new flags could potentially have surfaced an underlying issue
in databricks/cli#2307.
With this change, all curl invocations in this repo use the same set of flags.
Description:
* `-f` / `--fail`
Silently fails on HTTP errors (e.g., 404, 500). Prevents output of error
pages to stdout/stderr, returning exit code 22 instead. Critical for
scripting to avoid processing invalid responses.
* `-s` / `--silent`
Suppresses progress meters, error messages, and other non-essential
output. Ensures clean output for piping or saving to files.
* `-S` / `--show-error`
Overrides -s to display errors if they occur. Balances silent operation
with actionable error reporting.
* `-L` / `--location`
Follows HTTP redirects (3xx responses). Essential for URLs that point to
mirrored or updated resources (e.g., download links that redirect to
CDNs).1 parent 1cec11e commit ed70ee3
2 files changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
83 | | - | |
| 83 | + | |
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| |||
0 commit comments