From 266a30127252a17993f0813704b3b3ee19a1251f Mon Sep 17 00:00:00 2001 From: "j.spijker@ultimaker.com" Date: Tue, 30 Aug 2022 10:24:47 +0200 Subject: [PATCH] format env script correctly for subsystem The shell script for the environments should be formated based on the subsystem now. Fixes #11980 --- conans/client/subsystems.py | 1 + 1 file changed, 1 insertion(+) diff --git a/conans/client/subsystems.py b/conans/client/subsystems.py index 30cf824b1da..1b38e944185 100644 --- a/conans/client/subsystems.py +++ b/conans/client/subsystems.py @@ -72,6 +72,7 @@ def _windows_bash_wrapper(conanfile, command, env, envfiles_folder): # Wrapping the inside_command enable to prioritize our environment, otherwise /usr/bin go # first and there could be commands that we want to skip wrapped_user_cmd = environment_wrap_command(env, envfiles_folder, command, + subsystem=subsystem, accepted_extensions=("sh", )) wrapped_user_cmd = _escape_windows_cmd(wrapped_user_cmd)