put cmd in file because of needed quotes ''
This commit is contained in:
parent
a5d5169992
commit
0e194aaa09
@ -11,7 +11,8 @@ function g_retrycmd {
|
|||||||
do
|
do
|
||||||
((g_try=g_try+1))
|
((g_try=g_try+1))
|
||||||
echo "$(g_date_print) Try $g_try of $g_tries"
|
echo "$(g_date_print) Try $g_try of $g_tries"
|
||||||
$@ && break
|
echo "$@" >$g_tmp/g_retrycmd.cmd
|
||||||
|
bash $g_tmp/g_retrycmd.cmd && break
|
||||||
g_return=$?
|
g_return=$?
|
||||||
[ $g_try -eq $g_tries ] && return $g_return
|
[ $g_try -eq $g_tries ] && return $g_return
|
||||||
sleep $g_tries_delay
|
sleep $g_tries_delay
|
||||||
|
Loading…
Reference in New Issue
Block a user