From bb63e836ca35876d01cb6ef70bac5c3a9925ad50 Mon Sep 17 00:00:00 2001 From: Darren <27513732@qq.com> Date: Tue, 14 Nov 2023 10:59:56 +0800 Subject: [PATCH] Update update_zip.sh --- scripts/update_zip.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/update_zip.sh b/scripts/update_zip.sh index 2e3ca137..62c2031e 100644 --- a/scripts/update_zip.sh +++ b/scripts/update_zip.sh @@ -62,6 +62,7 @@ upgrade_zip() { # Download the package using wget while [ $attempts -lt $max_attempts ]; do + rm -f "/tmp/$package_name" wget --timeout=120 --no-clobber "$url" -O "/tmp/$package_name" # Check if the download was successful if [ $? -eq 0 ]; then @@ -115,4 +116,4 @@ upgrade_zip() { return 0 } -upgrade_zip \ No newline at end of file +upgrade_zip