From 108764c285573dc40a3c7ed51b9a3132b2612107 Mon Sep 17 00:00:00 2001 From: aclist <92275929+aclist@users.noreply.github.com> Date: Thu, 23 Nov 2023 13:24:16 +0900 Subject: [PATCH] fix: if statement --- dzgui.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/dzgui.sh b/dzgui.sh index 33e0f3c..08239a9 100755 --- a/dzgui.sh +++ b/dzgui.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash set -o pipefail -version=4.0.3 +version=4.0.4 aid=221100 game="dayz" @@ -2004,7 +2004,9 @@ fetch_dzq(){ fetch_query(){ local sum="d52ff070b5bb36ace2fce2d914479f47" local file="$helpers_path/query.py" - [[ -f $file ]] && [[ $(md5sum $file | awk '{print $1}') == $sum ]] && return + 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"