Skip to content

Commit 7140388

Browse files
committed
extra check for book condition
1 parent 6bdd802 commit 7140388

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/build_notebook.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
slug = sys.argv[1]
55

66
book = False
7-
if os.exists("index.md"):
7+
if os.exists("index.md") and os.path.getsize("index.md") > 0:
88
book = True
99

1010
if book is True:

0 commit comments

Comments
 (0)