Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
go-sectorbuilder
Commits
cc63aae5
Commit
cc63aae5
authored
Aug 28, 2019
by
laser
Browse files
bug(wrap in parens to ensure message sent to stderr)
parent
ea4ff72c
Changes
1
Show whitespace changes
Inline
Side-by-side
scripts/retry.sh
View file @
cc63aae5
...
@@ -37,7 +37,7 @@ for attempt in `seq 1 $attempts`; do
...
@@ -37,7 +37,7 @@ for attempt in `seq 1 $attempts`; do
sleep_seconds
=
$(
echo
"scale=2;
${
sleep_ms
}
/1000"
| bc
)
sleep_seconds
=
$(
echo
"scale=2;
${
sleep_ms
}
/1000"
| bc
)
>
&2
echo
"sleeping
${
sleep_seconds
}
s and then retrying (
$((
attempt
+
1
))
/
${
attempts
}
)"
(
>
&2
echo
"sleeping
${
sleep_seconds
}
s and then retrying (
$((
attempt
+
1
))
/
${
attempts
}
)"
)
sleep
"
${
sleep_seconds
}
"
sleep
"
${
sleep_seconds
}
"
done
done
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment