diff --git a/scripts/flash.cmd b/scripts/flash.cmd index b9b250e..a08e92c 100644 --- a/scripts/flash.cmd +++ b/scripts/flash.cmd @@ -2,4 +2,9 @@ CALL %~dp0setup.cmd CALL %~dp0compile.cmd :: "-f" forces overwriting old versions of the package -gp --install %~dp0..\%PACKAGE%\javacard\%PACKAGE%.cap --params %PARAMS% -f + +IF [%PARAMS%]==[] ( + gp -f --install %~dp0..\%PACKAGE%\javacard\%PACKAGE%.cap +) ELSE ( + gp -f --install %~dp0..\%PACKAGE%\javacard\%PACKAGE%.cap --params %PARAMS% +)