Skip to content

Commit 7c93a09

Browse files
richardhboydjaymccon
authored andcommitted
fixed example generation
cat only works if the file exists. This fix either creates the file or over-writes its contents.
1 parent dd33304 commit 7c93a09

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ with cross-platform Python packaging.
4545
Initialized a new project in <>
4646
$ cp ../cloudformation-cli-python-lib-0.0.1.tar.gz .
4747
$ cfn submit --dry-run
48-
$ cat test.json
48+
$ cat <<EOT > test.json
4949
{
5050
"credentials": {
5151
"accessKeyId": "",
@@ -65,6 +65,7 @@ $ cat test.json
6565
},
6666
"callbackContext": null
6767
}
68+
EOT
6869
$ sam local invoke TestEntrypoint --event test.json
6970
```
7071

0 commit comments

Comments
 (0)