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:
parent
0fd5cfdc8b
commit
38e1998721
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue