From 42bee23108a94c0d715df853c55282212462cd29 Mon Sep 17 00:00:00 2001 From: aclist <92275929+aclist@users.noreply.github.com> Date: Sat, 13 Jan 2024 15:18:34 +0900 Subject: [PATCH] feat: extra sum check --- dzgui.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dzgui.sh b/dzgui.sh index ea304ef..bcf9acd 100755 --- a/dzgui.sh +++ b/dzgui.sh @@ -552,6 +552,9 @@ fetch_helpers_by_sum(){ if [[ ! $? -eq 0 ]]; then raise_error_and_quit "Failed to fetch the file '$file'. Possible timeout?" fi + if [[ $(get_hash) $full_path != $sum ]]; then + logger WARN "Downloaded new '$file', but checksum != '$sum'" + fi logger INFO "Updated '$full_path' to sum '$sum'" fi [[ $file == "funcs" ]] && chmod +x "$full_path"