Skip to content

Commit 9506e84

Browse files
authored
Merge pull request #22 from samsrabin/only-mkdirs-if-needed
Only makedirs if doesn't exist.
2 parents 4ad641b + f67aa2d commit 9506e84

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

build_docs_to_publish

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,8 @@ def main():
195195
dst = args.publish_dir
196196
else:
197197
dst = os.path.join(args.publish_dir, version.short_name)
198-
os.makedirs(dst)
198+
if not os.path.exists(dst):
199+
os.makedirs(dst)
199200
subprocess.check_output(f"mv '{src}'/* '{dst}'/", shell=True)
200201

201202

0 commit comments

Comments
 (0)