put cmd in file because of needed quotes ''

This commit is contained in:
olli 2022-12-01 17:43:31 +01:00
parent a5d5169992
commit 0e194aaa09

View File

@ -11,7 +11,8 @@ function g_retrycmd {
do
((g_try=g_try+1))
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_try -eq $g_tries ] && return $g_return
sleep $g_tries_delay