mirror of
https://github.com/aclist/dztui.git
synced 2026-11-01 07:32:44 +01:00
feat: extra sum check
This commit is contained in:
1 parent
03ab264e28
commit
42bee23108
1 file changed
+3
@@ -552,6 +552,9 @@ fetch_helpers_by_sum(){
|
|||||||
if [[ ! $? -eq 0 ]]; then
|
if [[ ! $? -eq 0 ]]; then
|
||||||
raise_error_and_quit "Failed to fetch the file '$file'. Possible timeout?"
|
raise_error_and_quit "Failed to fetch the file '$file'. Possible timeout?"
|
||||||
fi
|
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'"
|
logger INFO "Updated '$full_path' to sum '$sum'"
|
||||||
fi
|
fi
|
||||||
[[ $file == "funcs" ]] && chmod +x "$full_path"
|
[[ $file == "funcs" ]] && chmod +x "$full_path"
|
||||||
|
|||||||
Reference in new issue
Block a user