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