From 4bd1d4728d99c73e7c3a6811eddce7c7a6c735a9 Mon Sep 17 00:00:00 2001 From: aclist <92275929+aclist@users.noreply.github.com> Date: Fri, 12 Jan 2024 14:13:41 +0900 Subject: [PATCH] chore: update logging --- dzgui.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dzgui.sh b/dzgui.sh index ece043f..a4d63bc 100755 --- a/dzgui.sh +++ b/dzgui.sh @@ -545,10 +545,11 @@ fetch_helpers_by_sum(){ file="$i" sum="${sums[$i]}" full_path="$helpers_path/$file" - if [[ -f "$full_path" ]] && [[ $(get_hash "$helpers_path/$file") == $sum ]]; then + cur_sum=$(get_hash "$helpers_path/$file") + if [[ -f "$full_path" ]] && [[ $cur_sum == $sum ]]; then logger INFO "'$file' is current" else - logger WARN "File '$full_path' checksum != '$sum'" + logger WARN "File '$full_path' checksum '$cur_sum' != '$sum'" curl -Ls "$url" > "$full_path/$file" if [[ ! $? -eq 0 ]]; then raise_error_and_quit "Failed to fetch the file '$file'. Possible timeout?"