Update update_zip.sh

This commit is contained in:
Darren 2023-11-14 10:59:56 +08:00 committed by GitHub
parent fdb2e14678
commit bb63e836ca
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -62,6 +62,7 @@ upgrade_zip() {
# Download the package using wget # Download the package using wget
while [ $attempts -lt $max_attempts ]; do while [ $attempts -lt $max_attempts ]; do
rm -f "/tmp/$package_name"
wget --timeout=120 --no-clobber "$url" -O "/tmp/$package_name" wget --timeout=120 --no-clobber "$url" -O "/tmp/$package_name"
# Check if the download was successful # Check if the download was successful
if [ $? -eq 0 ]; then if [ $? -eq 0 ]; then
@ -115,4 +116,4 @@ upgrade_zip() {
return 0 return 0
} }
upgrade_zip upgrade_zip