mirror of
https://github.com/aclist/dztui.git
synced 2025-09-06 13:42:28 +02:00
fix: curl failing
This commit is contained in:
parent
66d7d16c36
commit
b8fbe36c4e
2 changed files with 3 additions and 4 deletions
|
@ -689,7 +689,6 @@ src_path="$src_path"
|
|||
END
|
||||
}
|
||||
format_version_url(){
|
||||
echo FORMAT
|
||||
case "$branch" in
|
||||
"stable")
|
||||
version_url="$stable_url/dzgui.sh"
|
||||
|
@ -702,8 +701,8 @@ format_version_url(){
|
|||
}
|
||||
download_new_version(){
|
||||
local version_url="$(format_version_url)"
|
||||
curl -L "$version_url" > /tmp/dzg.new
|
||||
mv /tmp/dzg.new "$src_path"
|
||||
mv "$src_path" "$src_path.old"
|
||||
curl -Ls "$version_url" > "$src_path"
|
||||
rc=$?
|
||||
if [[ $rc -eq 0 ]]; then
|
||||
dl_changelog
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue