Revision 10055
Added by Aaron Marcuse-Kubitza over 11 years ago
lib/sh/web.sh | ||
---|---|---|
6 | 6 |
curl() # usage: [dir=...] curl ... |
7 | 7 |
{ |
8 | 8 |
echo_func; kw_params dir; local dir="${dir-$top_dir}" |
9 |
(cd "$dir"; self "$@") |
|
9 |
(cd "$dir"; self --fail "$@")
|
|
10 | 10 |
} |
11 | 11 |
|
12 | 12 |
fi |
Also available in: Unified diff
bugfix: lib/sh/web.sh: curl(): use --fail so that curl returns a nonzero exit status on error (e.g. file not found) instead of appearing to exit successfully but outputting an error HTML document instead of the file