Skip to content

Commit 39089b1

Browse files
authored
Merge pull request #323 from wilsonwang371/main
update kcl-cmp.yaml
2 parents e580b9a + ff608f7 commit 39089b1

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)