From 1b6fb4c9e7cdf5a430cf48eb26a4ab9556a0f439 Mon Sep 17 00:00:00 2001 From: aclist <92275929+aclist@users.noreply.github.com> Date: Thu, 23 Nov 2023 13:23:23 +0900 Subject: [PATCH] chore: backports from stable --- dzgui.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/dzgui.sh b/dzgui.sh index bef441f..79e0341 100755 --- a/dzgui.sh +++ b/dzgui.sh @@ -2004,7 +2004,11 @@ fetch_dzq(){ curl -Ls "$url" > $helpers_path/a2s/$repo.py } fetch_query(){ - [[ $(md5sum $helpers_path/query.py | awk '{print $1}') == "7cbae12ae68b526e7ff376b638123cc7" ]] && return + local sum="d52ff070b5bb36ace2fce2d914479f47" + local file="$helpers_path/query.py" + if [[ -f $file ]] && [[ $(md5sum $file | awk '{print $1}') == $sum ]]; then + return + fi local author="aclist" local repo="dzgui" local url="https://raw.githubusercontent.com/$author/dztui/$repo/helpers/query.py"