Update install_perccli.sh
This commit is contained in:
parent
fcb51e223a
commit
45c5398b8c
|
|
@ -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."
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue