fix return code

This commit is contained in:
olli 2023-02-07 09:42:07 +01:00
parent bef210ca6c
commit d737594cda

View File

@ -16,7 +16,7 @@ function g_retrycmd {
echo "$@" >$g_tmp/g_retrycmd.cmd
bash $g_tmp/g_retrycmd.cmd && return 0
g_return=$?
grep -q "test " $g_tmp/g_retrycmd.cmd && return 0
grep -q "test " $g_tmp/g_retrycmd.cmd && return $g_return
if [ $g_try -eq $g_tries ]
then
[ -z "$g_return" ] || g_echo_error "${FUNCNAME}: $@ failed all $g_tries tries"