From 85560dee6eb114a08d4d1ce34e690002757475cd Mon Sep 17 00:00:00 2001 From: Klaus Aehlig Date: Tue, 5 Nov 2024 16:39:30 +0100 Subject: Use "cwd" property of actions ... instead of composing a shell command doing a cd first. --- rules/CC/EXPRESSIONS | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'rules') diff --git a/rules/CC/EXPRESSIONS b/rules/CC/EXPRESSIONS index 0330e719..ee006dad 100644 --- a/rules/CC/EXPRESSIONS +++ b/rules/CC/EXPRESSIONS @@ -1757,16 +1757,8 @@ } ] } - , "cmd": - [ "sh" - , "-c" - , { "type": "join" - , "$1": - [ "cd work && " - , {"type": "join_cmd", "$1": {"type": "var", "name": "cmd"}} - ] - } - ] + , "cmd": {"type": "var", "name": "cmd"} + , "cwd": "work" , "env": {"type": "var", "name": "ENV"} } ] -- cgit v1.2.3