echo on sterr for pipes

This commit is contained in:
olli 2022-12-02 14:59:38 +01:00
parent 0e194aaa09
commit 530d1ae511

View File

@ -10,7 +10,7 @@ function g_retrycmd {
until [ $g_try -eq $g_tries ]
do
((g_try=g_try+1))
echo "$(g_date_print) Try $g_try of $g_tries"
>&2 echo "$(g_date_print) Try $g_try of $g_tries"
echo "$@" >$g_tmp/g_retrycmd.cmd
bash $g_tmp/g_retrycmd.cmd && break
g_return=$?