no declarar variables que se usan una vez

This commit is contained in:
f 2022-03-03 14:37:09 -03:00
parent a921e1fd5d
commit f148b14b92

View file

@ -37,9 +37,8 @@ while :;do
# errores # errores
unset srv_msg unset srv_msg
unset curl_msg unset curl_msg
err_time=$(date +%Y-%m-%d-%H:%M:%S)
[ ! -z "$remote_response" ] && srv_msg="- $( echo $remote_response | grep -o '<body.*>.*</body>')" [ ! -z "$remote_response" ] && srv_msg="- $( echo $remote_response | grep -o '<body.*>.*</body>')"
[ -s "$curl_err" ] && curl_msg="- $(<$curl_err)" [ -s "$curl_err" ] && curl_msg="- $(<$curl_err)"
echo $err_time - $local_transaction_uuid - server status: $server_error $srv_msg $curl_msg >> $log echo $(date +%Y-%m-%d-%H:%M:%S) - $local_transaction_uuid - server status: $server_error $srv_msg $curl_msg >> $log
fi fi
done done