Skip to content

Commit

Permalink
build, refactor: clear new_args before process arguments.
Browse files Browse the repository at this point in the history
  • Loading branch information
xicilion committed Feb 1, 2024
1 parent c24194c commit 4c3daa4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion build.cmd
Expand Up @@ -6,6 +6,7 @@ set SOURCE_ROOT=%~dp0
set dev=0
set build_addon=0
set USE_VENDER_DIST=
set new_args=

set i=0
for %%a in (%*) do (
Expand All @@ -16,7 +17,7 @@ for %%a in (%*) do (
set USE_VENDER_DIST=1
set build_addon=1
) else (
set new_args[!i!]=%%a
set new_args=%new_args% %%a
set /a i+=1
)
)
Expand Down

0 comments on commit 4c3daa4

Please sign in to comment.