From 447df9204eddb92e3ce8ace581add4e7bba040e1 Mon Sep 17 00:00:00 2001 From: erlanger Date: Sat, 23 Jan 2016 12:48:55 -0500 Subject: replacing OS vars: use .orig files to prevent overwriting --- priv/templates/bin_windows | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'priv/templates/bin_windows') diff --git a/priv/templates/bin_windows b/priv/templates/bin_windows index 3466292..7b1d4d8 100644 --- a/priv/templates/bin_windows +++ b/priv/templates/bin_windows @@ -73,6 +73,13 @@ cd %rootdir% @if exist "%possible_sys%" ( set sys_config=-config "%possible_sys%" ) +@if exist "%possible_sys%".orig ( + ren "%possible_sys%".orig "%possible_sys%" + set sys_config=-config "%possible_sys%" +) +@if exist "%rel_dir%\vm.args".orig ( + ren "%rel_dir%\vm.args" ".orig %rel_dir%\vm.args" +) @goto :eof :: set boot_script variable -- cgit v1.2.3