Gitiles
Code Review
Sign In
gerrit.onosproject.org
/
onos
/
659421090b226a1b9978962a4db03d5d179f2104
/
.
/
tools
/
test
/
scenarios
/
bin
/
curl-with-retry
blob: c9546aea82d9775670e20c5e841f06ca6caeabb6 [
file
] [
log
] [
blame
]
#!/bin/bash
aux
=/
tmp
/
stc
-
$$
.
log
trap
"rm -f $aux 2>/dev/null"
EXIT
url
=
$1
echo curl
-
with
-
retry
:
$
*
set
-
x
for
i
in
{
1.
.
3
};
do
curl
-
f
-
uonos
:
rocks $
{
url
}
>
$aux
if
[
$
?
=
0
];
then
cat $aux
exit
0
fi
sleep
1
done
cat $aux
exit
1