From b8fbe36c4e9fdda0a9853dc6644905022c158962 Mon Sep 17 00:00:00 2001 From: aclist <92275929+aclist@users.noreply.github.com> Date: Fri, 12 Jan 2024 15:56:53 +0900 Subject: [PATCH] fix: curl failing --- dzgui.sh | 2 +- helpers/funcs | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/dzgui.sh b/dzgui.sh index d35b359..60b3c01 100755 --- a/dzgui.sh +++ b/dzgui.sh @@ -529,7 +529,7 @@ fetch_helpers_by_sum(){ ["ui.py"]="8c430f1465995cbd98f4ad8e2580a79d" ["query_v2.py"]="1822bd1769ce7d7cb0d686a60f9fa197" ["vdf2json.py"]="2f49f6f5d3af919bebaab2e9c220f397" - ["funcs"]="bacc774e52229ed6848829d06f96376e" + ["funcs"]="d2537e9b7916453fbfe55592d92e683f" ) local author="aclist" local repo="dztui" diff --git a/helpers/funcs b/helpers/funcs index 03f3644..1842423 100755 --- a/helpers/funcs +++ b/helpers/funcs @@ -689,7 +689,6 @@ src_path="$src_path" END } format_version_url(){ - echo FORMAT case "$branch" in "stable") version_url="$stable_url/dzgui.sh" @@ -702,8 +701,8 @@ format_version_url(){ } download_new_version(){ local version_url="$(format_version_url)" - curl -L "$version_url" > /tmp/dzg.new - mv /tmp/dzg.new "$src_path" + mv "$src_path" "$src_path.old" + curl -Ls "$version_url" > "$src_path" rc=$? if [[ $rc -eq 0 ]]; then dl_changelog