mirror of
https://github.com/Flowseal/zapret-discord-youtube.git
synced 2025-12-10 13:30:31 +05:00
Fix for args with value
This commit is contained in:
@@ -28,7 +28,7 @@ if "%1"=="admin" (
|
|||||||
) else (
|
) else (
|
||||||
echo Requesting admin rights...
|
echo Requesting admin rights...
|
||||||
powershell -Command "Start-Process 'cmd.exe' -ArgumentList '/c \"\"%~f0\" admin\"' -Verb RunAs"
|
powershell -Command "Start-Process 'cmd.exe' -ArgumentList '/c \"\"%~f0\" admin\"' -Verb RunAs"
|
||||||
exit /b
|
exit
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
@@ -249,9 +249,9 @@ for /f "tokens=*" %%a in ('type "!selectedFile!"') do (
|
|||||||
|
|
||||||
if "!arg:~0,2!" EQU "--" (
|
if "!arg:~0,2!" EQU "--" (
|
||||||
set "mergeargs=2"
|
set "mergeargs=2"
|
||||||
) else if !mergeargs!==2 (
|
) else if !mergeargs! GEQ 1 (
|
||||||
set "mergeargs=1"
|
if !mergeargs!==2 set "mergeargs=1"
|
||||||
) else if !mergeargs!==1 (
|
|
||||||
for %%x in (!args_with_value!) do (
|
for %%x in (!args_with_value!) do (
|
||||||
if /i "%%x"=="!arg!" (
|
if /i "%%x"=="!arg!" (
|
||||||
set "mergeargs=3"
|
set "mergeargs=3"
|
||||||
|
|||||||
Reference in New Issue
Block a user