From 4dd2a2941f4f7d946a30cc19a67af1e136fc5c0d Mon Sep 17 00:00:00 2001 From: aclist <92275929+aclist@users.noreply.github.com> Date: Sun, 16 Jun 2024 02:57:28 +0900 Subject: [PATCH] fix: setup handling --- dzgui.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dzgui.sh b/dzgui.sh index e4e6c1b..cc1046a 100755 --- a/dzgui.sh +++ b/dzgui.sh @@ -238,6 +238,7 @@ watcher_deps(){ logger INFO "Found DZG Watcher dependencies" } format_version_url(){ + [[ -z "$branch" ]] && branch="stable" case "$branch" in "stable") version_url="$stable_url/dzgui.sh" @@ -531,7 +532,7 @@ fetch_dzq(){ logger INFO "Updated DZQ to sha '$sha'" } fetch_helpers_by_sum(){ - source "$config_file" + [[ -f "$config_file" ]] && source "$config_file" declare -A sums sums=( ["ui.py"]="f14772424461ec438579dec567db0634"