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
576cd686
Commit
576cd686
authored
Aug 28, 2019
by
Sidney Keese
Browse files
stderr echo
parent
b3a5d9e6
Changes
1
Hide whitespace changes
Inline
Side-by-side
scripts/retry.sh
View file @
576cd686
...
@@ -35,7 +35,9 @@ for attempt in `seq 1 $attempts`; do
...
@@ -35,7 +35,9 @@ for attempt in `seq 1 $attempts`; do
sleep_ms
=
"
$((
$attempt
*
$attempt
*
$sleep_millis
))
"
sleep_ms
=
"
$((
$attempt
*
$attempt
*
$sleep_millis
))
"
echo
>
&2
"sleeping
${
sleep_ms
:0:-3
}
.
${
sleep_ms
:
-3
}
s and then retrying (
$((
attempt
+
1
))
/
${
attempts
}
)"
sleep_seconds
=
$(
echo
"scale=2;
${
sleep_ms
}
/1000"
| bc
)
>
&2
echo
"sleeping
${
sleep_seconds
}
s and then retrying (
$((
attempt
+
1
))
/
${
attempts
}
)"
sleep
"
${
sleep_ms
:0:-3
}
.
${
sleep_ms
:
-3
}
"
sleep
"
${
sleep_ms
:0:-3
}
.
${
sleep_ms
:
-3
}
"
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