fix: control flow

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

No files matched your search

+1 -1
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