Skip to content

Commit 79ce848

Browse files
committed
fixes file creation actions
1 parent c93d646 commit 79ce848

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

dist/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/actions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export function resolveAction(
2323
case "file-delete":
2424
return `rm ${args["file-path"]}`;
2525
case "file-create":
26-
return `echo "${args["file-content"]}" > ${args["file-path"]}`;
26+
return `cat > ${args["file-path"]} << 'EOF'\n${args["file-content"]}\nEOF`;
2727
case "file-move":
2828
return `mv ${args["source-path"]} ${args["destination-path"]}`;
2929
case "folder-create":

0 commit comments

Comments
 (0)