From 733e8d50ef346de4a9d55979bd6957d84af059eb Mon Sep 17 00:00:00 2001 From: Pitts Date: Fri, 12 Oct 2018 10:29:39 -0400 Subject: [PATCH] Check for if PWD is in a folder inside System32 (not just System32 itself), since many sysprep scripts will be executing out of an inner folder --- brigadier | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/brigadier b/brigadier index 1fb905c..90f2d28 100755 --- a/brigadier +++ b/brigadier @@ -147,7 +147,7 @@ according to the post date.") output_dir = opts.output_dir else: output_dir = os.getcwd() - if output_dir.endswith('ystem32'): + if output_dir.endswith('ystem32') or '\\system32\\' in output_dir.lower(): output_dir = os.environ['SystemDrive'] + "\\" status("Changing output directory to %s to work around an issue \ when running the installer out of 'system32'." % output_dir)