curl: less verbose and fail on HTTP error response

-s - don't show download progress meter
-S - *do* show error messages (otherwise hidden by -s)
-f - exit with non-zero status on HTTP 400 or above responses
pull/973/head
Jason Rhinelander 5 years ago
parent c69237358f
commit 80fee00b5a

@ -60,7 +60,7 @@ tmp=/tmp/bootstrap.tmp
# MacOS does not have wget without homebrew but does have curl
# Rick also had indicated most BSDs have curl too
if curl -L "$url" >"$tmp"; then
if curl -fsSL "$url" >"$tmp"; then
mv "$tmp" "$dest"
echo -e "${GREEN}lokinet successfully bootstrapped${NC}"
else

Loading…
Cancel
Save