Skip to content

Commit 6e44277

Browse files
authored
skip existing examples on generation (#616)
1 parent 48fe7bc commit 6e44277

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

extract-code-blocks.awk

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,10 @@ function camel(value) {
4949
}
5050
system("mkdir -p " output "/" tag);
5151
out_file=output "/" tag "/" operation_id ".pybeta";
52+
if (system("[ -f " out_file " ]") == 0) {
53+
printf "skipped: "
54+
in_code_block = 0;
55+
}
5256
print out_file;
5357
} else {
5458
print "Can't parse " FILENAME > "/dev/stderr"

0 commit comments

Comments
 (0)