Update install_perccli.sh

This commit is contained in:
jjorstad2 2025-11-02 21:27:21 +00:00
parent fcb51e223a
commit 45c5398b8c
1 changed files with 3 additions and 3 deletions

View File

@ -14,10 +14,10 @@ echo "Target URL: $PERCCLI_URL"
# 1. Download the archive # 1. Download the archive
echo "1. Downloading $ARCHIVE_NAME..." echo "1. Downloading $ARCHIVE_NAME..."
# Using wget to download the file # Using wget to download the file, adding a User-Agent to prevent 403 errors on some servers
wget --no-check-certificate "$PERCCLI_URL" -O "$ARCHIVE_NAME" 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 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 exit 1
fi fi
echo "Download complete." echo "Download complete."