From e7235d68b03dc5d1b5f83889f2dc868da85593fd Mon Sep 17 00:00:00 2001 From: mpeterv Date: Sun, 3 Apr 2016 14:30:11 +0300 Subject: [PATCH] Don't run endlocal before recursive call --- hererocks.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/hererocks.py b/hererocks.py index 45ea949..fd42e68 100755 --- a/hererocks.py +++ b/hererocks.py @@ -1173,7 +1173,6 @@ def main(argv=None): bat_h.write(b"set exitcode=%errorlevel%\r\n") bat_h.write(b"if %exitcode% equ 0 (\r\n") - bat_h.write(b" endlocal\r\n") bat_h.write(b" {}\r\n".format(recursive_call)) bat_h.write(b") else (\r\n") @@ -1181,7 +1180,6 @@ def main(argv=None): bat_h.write(b' type "{}"\r\n'.format(setup_output_name)) bat_h.write(b" echo Error: got exitcode %exitcode% from command {}\r\n".format(vs_setup_cmd)) - bat_h.write(b" endlocal\r\n") bat_h.write(b" exit /b 1\r\n") bat_h.write(b")\r\n") bat_h.close()