1
0
Fork 0
mirror of https://github.com/aclist/dztui.git synced 2024-12-29 13:52:03 +01:00

fix: download toggle

This commit is contained in:
aclist 2024-01-12 15:50:00 +09:00
parent dc4e418540
commit 66d7d16c36
2 changed files with 3 additions and 3 deletions

View file

@ -529,7 +529,7 @@ fetch_helpers_by_sum(){
["ui.py"]="8c430f1465995cbd98f4ad8e2580a79d" ["ui.py"]="8c430f1465995cbd98f4ad8e2580a79d"
["query_v2.py"]="1822bd1769ce7d7cb0d686a60f9fa197" ["query_v2.py"]="1822bd1769ce7d7cb0d686a60f9fa197"
["vdf2json.py"]="2f49f6f5d3af919bebaab2e9c220f397" ["vdf2json.py"]="2f49f6f5d3af919bebaab2e9c220f397"
["funcs"]="c6a6ae4d004245e34982078ec006ef3a" ["funcs"]="bacc774e52229ed6848829d06f96376e"
) )
local author="aclist" local author="aclist"
local repo="dztui" local repo="dztui"

View file

@ -702,8 +702,8 @@ format_version_url(){
} }
download_new_version(){ download_new_version(){
local version_url="$(format_version_url)" local version_url="$(format_version_url)"
mv "$src_path" "$src_path.old" curl -L "$version_url" > /tmp/dzg.new
curl -Ls "$version_url" > "$src_path" mv /tmp/dzg.new "$src_path"
rc=$? rc=$?
if [[ $rc -eq 0 ]]; then if [[ $rc -eq 0 ]]; then
dl_changelog dl_changelog