fix return code
This commit is contained in:
parent
bef210ca6c
commit
d737594cda
@ -16,7 +16,7 @@ function g_retrycmd {
|
|||||||
echo "$@" >$g_tmp/g_retrycmd.cmd
|
echo "$@" >$g_tmp/g_retrycmd.cmd
|
||||||
bash $g_tmp/g_retrycmd.cmd && return 0
|
bash $g_tmp/g_retrycmd.cmd && return 0
|
||||||
g_return=$?
|
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 ]
|
if [ $g_try -eq $g_tries ]
|
||||||
then
|
then
|
||||||
[ -z "$g_return" ] || g_echo_error "${FUNCNAME}: $@ failed all $g_tries tries"
|
[ -z "$g_return" ] || g_echo_error "${FUNCNAME}: $@ failed all $g_tries tries"
|
||||||
|
Loading…
Reference in New Issue
Block a user