mirror of
https://github.com/aclist/dztui.git
synced 2026-10-30 06:32:53 +01:00
fix: presetup checks
This commit is contained in:
1 parent
1566f8ade6
commit
06a389eebe
1 file changed
+3
-4
@@ -540,12 +540,11 @@ fetch_helpers_by_sum(){
|
|||||||
file="$i"
|
file="$i"
|
||||||
sum="${sums[$i]}"
|
sum="${sums[$i]}"
|
||||||
full_path="$helpers_path/$file"
|
full_path="$helpers_path/$file"
|
||||||
cur_sum=$(get_hash "$helpers_path/$file")
|
if [[ -f "$full_path" ]] && [[ $(get_hash "$full_path") == $sum ]]; then
|
||||||
if [[ -f "$full_path" ]] && [[ $cur_sum == $sum ]]; then
|
|
||||||
logger INFO "'$file' is current"
|
logger INFO "'$file' is current"
|
||||||
else
|
else
|
||||||
logger WARN "File '$full_path' checksum '$cur_sum' != '$sum'"
|
logger WARN "File '$full_path' checksum != '$sum'"
|
||||||
curl -Ls "$url" > "$full_path/$file"
|
curl -Ls "$url" > "$full_path"
|
||||||
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
|
||||||
|
|||||||
Reference in new issue
Block a user