From 80fee00b5a135a6e281d1e8b84bc0befb2810298 Mon Sep 17 00:00:00 2001 From: Jason Rhinelander Date: Sun, 15 Dec 2019 16:05:27 -0400 Subject: [PATCH] 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 --- lokinet-bootstrap | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lokinet-bootstrap b/lokinet-bootstrap index 6bf00f6af..b1cf445c8 100755 --- a/lokinet-bootstrap +++ b/lokinet-bootstrap @@ -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