summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKlaus Aehlig <klaus.aehlig@huawei.com>2024-11-05 16:39:30 +0100
committerKlaus Aehlig <klaus.aehlig@huawei.com>2024-11-06 14:37:16 +0100
commit1e099fbbb5648177ceded11a7a56e6ca9e9103ac (patch)
tree76866cabbf65dd5c060a92bd0ded7be759172fb5
parentee8a8d511fb5c8d0cbad8a5979759ce853e8d767 (diff)
downloadrules-cc-1e099fbbb5648177ceded11a7a56e6ca9e9103ac.tar.gz
Use "cwd" property of actions
... instead of composing a shell command doing a cd first.
-rw-r--r--CC/EXPRESSIONS12
1 files changed, 2 insertions, 10 deletions
diff --git a/CC/EXPRESSIONS b/CC/EXPRESSIONS
index 0330e71..ee006da 100644
--- a/CC/EXPRESSIONS
+++ b/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"}
}
]