mirror of
https://github.com/SpotX-Official/SpotX.git
synced 2026-06-19 05:40:06 +10:00
script run error
- Fixed error when running script without parameters
This commit is contained in:
+3
-3
@@ -25,7 +25,7 @@ if %errorlevel% EQU 9009 (
|
|||||||
)
|
)
|
||||||
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
|
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% EQU 200 (
|
if %STATUS_CODE% EQU 200 (
|
||||||
powershell -Command "& {[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12}"; "& {(Invoke-WebRequest -UseBasicParsing 'https://raw.githubusercontent.com/amd64fox/SpotX/main/Install.ps1').Content | Invoke-Expression}"
|
powershell -Command "&{[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12}; """"& { $((Invoke-WebRequest -UseBasicParsing 'https://raw.githubusercontent.com/amd64fox/SpotX/main/Install.ps1').Content)} """" | Invoke-Expression"
|
||||||
)
|
)
|
||||||
if %STATUS_CODE% LSS 1 (
|
if %STATUS_CODE% LSS 1 (
|
||||||
echo No network connection
|
echo No network connection
|
||||||
@@ -36,7 +36,7 @@ if %STATUS_CODE% LSS 1 (
|
|||||||
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
|
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!" EQU "200 " (
|
if "!STATUS_CODE!" EQU "200 " (
|
||||||
cls
|
cls
|
||||||
powershell -Command "& {[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12}"; "& {(Invoke-WebRequest -UseBasicParsing 'https://raw.githubusercontent.com/amd64fox/SpotX/main/Install.ps1').Content | Invoke-Expression}"
|
powershell -Command "&{[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12}; """"& { $((Invoke-WebRequest -UseBasicParsing 'https://raw.githubusercontent.com/amd64fox/SpotX/main/Install.ps1').Content)} """" | Invoke-Expression"
|
||||||
) else (
|
) else (
|
||||||
echo Error again
|
echo Error again
|
||||||
@echo.
|
@echo.
|
||||||
@@ -59,7 +59,7 @@ if %STATUS_CODE% GTR 100 if not %STATUS_CODE% EQU 200 (
|
|||||||
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
|
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!" EQU "200 " (
|
if "!STATUS_CODE!" EQU "200 " (
|
||||||
cls
|
cls
|
||||||
powershell -Command "& {[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12}"; "& {(Invoke-WebRequest -UseBasicParsing 'https://raw.githubusercontent.com/amd64fox/SpotX/main/Install.ps1').Content | Invoke-Expression}"
|
powershell -Command "&{[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12}; """"& { $((Invoke-WebRequest -UseBasicParsing 'https://raw.githubusercontent.com/amd64fox/SpotX/main/Install.ps1').Content)} """" | Invoke-Expression"
|
||||||
) else (
|
) else (
|
||||||
echo Error again
|
echo Error again
|
||||||
@echo.
|
@echo.
|
||||||
|
|||||||
@@ -53,7 +53,7 @@ or
|
|||||||
|
|
||||||
* Run The following command in PowerShell:
|
* Run The following command in PowerShell:
|
||||||
```ps1
|
```ps1
|
||||||
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; (iwr -useb 'https://raw.githubusercontent.com/amd64fox/SpotX/main/Install.ps1').Content | iex
|
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; iex "& { $((iwr -useb 'https://raw.githubusercontent.com/amd64fox/SpotX/main/Install.ps1').Content) }"
|
||||||
```
|
```
|
||||||
|
|
||||||
</details>
|
</details>
|
||||||
|
|||||||
Reference in New Issue
Block a user