From f148b14b92fd98945b0295eaab08a1e02d30d50f Mon Sep 17 00:00:00 2001 From: f Date: Thu, 3 Mar 2022 14:37:09 -0300 Subject: [PATCH] no declarar variables que se usan una vez --- register.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/register.sh b/register.sh index 02cdc0b..3f87505 100755 --- a/register.sh +++ b/register.sh @@ -37,9 +37,8 @@ while :;do # errores unset srv_msg unset curl_msg - err_time=$(date +%Y-%m-%d-%H:%M:%S) [ ! -z "$remote_response" ] && srv_msg="- $( echo $remote_response | grep -o '.*')" [ -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 done