summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKlaus Aehlig <klaus.aehlig@huawei.com>2024-05-28 18:45:19 +0200
committerKlaus Aehlig <klaus.aehlig@huawei.com>2024-05-28 18:45:19 +0200
commit3fa66733056a2d7c1b2afcf2eca978a7c29bedc3 (patch)
tree7e57ff87eb030302842221ac290fc837c80f655a
parentdaeedba20ada9dc40e892725a857c41e484b2a28 (diff)
downloadrules-cc-3fa66733056a2d7c1b2afcf2eca978a7c29bedc3.tar.gz
["shell", "cmds"]: correctly join PATH
... as shell environment variable has to be a string, not a list.
-rw-r--r--shell/RULES6
1 files changed, 5 insertions, 1 deletions
diff --git a/shell/RULES b/shell/RULES
index 3175c34..41530a2 100644
--- a/shell/RULES
+++ b/shell/RULES
@@ -255,7 +255,11 @@
, "then":
{ "type": "singleton_map"
, "key": "PATH"
- , "value": {"type": "var", "name": "PATH"}
+ , "value":
+ { "type": "join"
+ , "separator": ":"
+ , "$1": {"type": "var", "name": "PATH"}
+ }
}
, "else": {"type": "empty_map"}
}