diff options
author | Tino Breddin <[email protected]> | 2019-03-19 13:42:36 +0100 |
---|---|---|
committer | Tino Breddin <[email protected]> | 2019-04-03 09:23:42 +0200 |
commit | 13c28fd4d5bfd2f91eeb4ff96ace3a2c321664f7 (patch) | |
tree | f907e62cd9d5cbcdedf2e9557d91c278938cd163 /priv | |
parent | 492f7f776648527c22c7148f9a75077cdca1bac7 (diff) | |
download | relx-13c28fd4d5bfd2f91eeb4ff96ace3a2c321664f7.tar.gz relx-13c28fd4d5bfd2f91eeb4ff96ace3a2c321664f7.tar.bz2 relx-13c28fd4d5bfd2f91eeb4ff96ace3a2c321664f7.zip |
Fix parameter shift on win32 for extension commands
Diffstat (limited to 'priv')
-rw-r--r-- | priv/templates/extended_bin_windows | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/priv/templates/extended_bin_windows b/priv/templates/extended_bin_windows index 2d9e0ff..6d8f084 100644 --- a/priv/templates/extended_bin_windows +++ b/priv/templates/extended_bin_windows @@ -324,8 +324,9 @@ set description=Erlang node %node_name%%hostname% in %rootdir% :: Run extension script :run_extension @if exist "%script_dir%\extensions\%1.cmd" ( - shift - call "%script_dir%\extensions\%1.cmd" %* + set _extension_params=%* + call set _extension_params=%%_extension_params:*%1=%% + call "%script_dir%\extensions\%1.cmd" %%_extension_params%% ) @goto :eof |