diff --git a/install_perccli.sh b/install_perccli.sh index 7e898ca..2aac918 100644 --- a/install_perccli.sh +++ b/install_perccli.sh @@ -14,10 +14,10 @@ echo "Target URL: $PERCCLI_URL" # 1. Download the archive echo "1. Downloading $ARCHIVE_NAME..." -# Using wget to download the file -wget --no-check-certificate "$PERCCLI_URL" -O "$ARCHIVE_NAME" +# Using wget to download the file, adding a User-Agent to prevent 403 errors on some servers +wget --no-check-certificate --user-agent="Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1)" "$PERCCLI_URL" -O "$ARCHIVE_NAME" if [ $? -ne 0 ]; then - echo "ERROR: Failed to download the file. Check your network connection and ensure 'wget' is installed." + echo "ERROR: Failed to download the file. Check your network connection and ensure 'wget' is installed, or try a different User-Agent." exit 1 fi echo "Download complete."