Skip to content

Commit

Permalink
Write curl errors to /tmp/curl.err for debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
marcone committed Oct 22, 2023
1 parent 450cbd0 commit 75ccb09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion setup/pi/setup-teslausb
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ function setup_progress () {

function curlwrapper () {
setup_progress "curl $*" > /dev/null
while ! curl -s --fail "$@"
while ! curl -s -S --stderr /tmp/curl.err --fail "$@"
do
setup_progress "'curl $*' failed, retrying" > /dev/null
sntp -S time.google.com || true
Expand Down

0 comments on commit 75ccb09

Please sign in to comment.