mirror of
https://github.com/SpotX-Official/SpotX.git
synced 2026-06-19 22:00:04 +10:00
Code optimization, removing unused functions, adding exceptions.
- Removed redundant features from clearing cache and blocking updates - Improved behavior when overwriting a patch - Added exceptions if there is no response from the Github server - If it was not possible to download the file, it will start the download one more time - Code optimization and minor bug fixes
This commit is contained in:
+8
-1
@@ -1,4 +1,11 @@
|
||||
@echo off
|
||||
FOR /f %%i IN ('curl --write-out %%{http_code} --silent --output /dev/null --insecure https://raw.githubusercontent.com/amd64fox/SpotX/main/Install.ps1') do SET STATUS_CODE=%%i 2>nul
|
||||
IF %STATUS_CODE% == 200 (
|
||||
powershell -Command "& {[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12}"; "& {Invoke-WebRequest -UseBasicParsing 'https://raw.githubusercontent.com/amd64fox/SpotX/main/Install.ps1' | Invoke-Expression}"
|
||||
) else (
|
||||
echo Can't access github.com, please check your internet connection.
|
||||
echo HTTP status code %STATUS_CODE%
|
||||
echo Script stopped.
|
||||
)
|
||||
pause
|
||||
exit
|
||||
exit
|
||||
Reference in New Issue
Block a user