mirror of
https://github.com/aclist/dztui.git
synced 2024-12-28 21:32:36 +01:00
chore: comments
This commit is contained in:
parent
b8fbe36c4e
commit
71fd37feb6
1 changed files with 2 additions and 1 deletions
3
dzgui.sh
3
dzgui.sh
|
@ -315,11 +315,13 @@ check_version(){
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
download_new_version(){
|
download_new_version(){
|
||||||
|
# function differs slightly in helper file due to return codes
|
||||||
local version_url="$(format_version_url)"
|
local version_url="$(format_version_url)"
|
||||||
mv "$src_path" "$src_path.old"
|
mv "$src_path" "$src_path.old"
|
||||||
curl -Ls "$version_url" > "$src_path"
|
curl -Ls "$version_url" > "$src_path"
|
||||||
rc=$?
|
rc=$?
|
||||||
if [[ $rc -eq 0 ]]; then
|
if [[ $rc -eq 0 ]]; then
|
||||||
|
dl_changelog
|
||||||
logger INFO "Wrote new version to $src_path"
|
logger INFO "Wrote new version to $src_path"
|
||||||
chmod +x "$src_path"
|
chmod +x "$src_path"
|
||||||
touch "${config_path}.unmerged"
|
touch "${config_path}.unmerged"
|
||||||
|
@ -332,7 +334,6 @@ download_new_version(){
|
||||||
fdialog "Failed to download the new version. Restoring old version"
|
fdialog "Failed to download the new version. Restoring old version"
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
dl_changelog
|
|
||||||
}
|
}
|
||||||
prompt_dl(){
|
prompt_dl(){
|
||||||
_text(){
|
_text(){
|
||||||
|
|
Loading…
Reference in a new issue