Skip to content

Commit f86d079

Browse files
committed
Fix windows dist script
In copying the license for the third-party bins it is attempting to delete a directory that doesn't exist.
1 parent 11ce6b7 commit f86d079

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/etc/copy-runtime-deps.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ def copy_runtime_deps(dest_dir):
1010
shutil.copy(path, dest_dir)
1111

1212
lic_dest = os.path.join(dest_dir, "third-party")
13-
shutil.rmtree(lic_dest) # copytree() won't overwrite existing files
13+
if os.path.exists(lic_dest):
14+
shutil.rmtree(lic_dest) # copytree() won't overwrite existing files
1415
shutil.copytree(os.path.join(os.path.dirname(__file__), "third-party"), lic_dest)
1516

1617
copy_runtime_deps(sys.argv[1])

0 commit comments

Comments
 (0)