fix(installer): avoid duplicate pause prompts

This commit is contained in:
amd64fox
2026-06-16 19:38:51 +03:00
parent 0725e3465f
commit fca14a99ba
5 changed files with 26 additions and 21 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
@echo off
:: Line for changing spotx parameters, each parameter should be separated by a space
set param=-premium -new_theme
set param=-premium -new_theme -no_pause
set url='https://raw.githubusercontent.com/SpotX-Official/SpotX/refs/heads/main/run.ps1'
set url2='https://spotx-official.github.io/SpotX/run.ps1'
@@ -11,4 +11,4 @@ set tls=[Net.ServicePointManager]::SecurityProtocol = [Net.ServicePointManager]:
-Command %tls% $p='%param%'; """ & { $(try { iwr -useb %url% } catch { $p+= ' -m'; iwr -useb %url2% })} $p """" | iex
pause
exit /b
exit /b