1
0
Fork 0
mirror of https://github.com/aclist/dztui.git synced 2025-09-06 13:42:28 +02:00

fix: control flow

This commit is contained in:
aclist 2024-01-12 15:26:33 +09:00
parent 0fd5cfdc8b
commit 38e1998721
2 changed files with 2 additions and 2 deletions

View file

@ -706,6 +706,7 @@ download_new_version(){
curl -Ls "$version_url" > "$src_path"
rc=$?
if [[ $rc -eq 0 ]]; then
dl_changelog
logger INFO "Wrote new version to $src_path"
chmod +x "$src_path"
touch "${config_path}.unmerged"
@ -718,7 +719,6 @@ download_new_version(){
logger WARN "curl failed to fetch new version. Rolling back"
return 1
fi
dl_changelog
}
dl_changelog(){
local mdbranch