Skip to content

Commit ff608f7

Browse files
committed
update kcl-cmp.yaml
Signed-off-by: Wilson Wang <[email protected]>
1 parent e580b9a commit ff608f7

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

examples/gitops/install/kcl-cmp.yaml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,14 @@ data:
1212
spec:
1313
version: v1.0
1414
generate:
15-
command: ["sh"]
15+
command: ["sh", "-c"]
1616
args:
17-
- -c
18-
- kcl run
17+
- |
18+
tempfile=$(mktemp)
19+
kcl run -q -o $tempfile
20+
error=$?
21+
if [ $error -eq 0 ]; then
22+
cat $tempfile
23+
rm $tempfile
24+
fi
25+
exit $error

0 commit comments

Comments
 (0)