Skip to content

Commit d2270a7

Browse files
author
Peter Amstutz
committed
Don't reset real files by accident.
1 parent ef62092 commit d2270a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cwltool/job.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ def linkoutdir(src, tgt):
241241
def linkoutdir(src, tgt):
242242
# Need to make the link to the staged file (may be inside
243243
# the container)
244-
if os.path.exists(tgt):
244+
if os.path.exists(tgt) and os.path.islink(tgt):
245245
os.remove(tgt)
246246
os.symlink(src, tgt)
247247
stageFiles(generatemapper, linkoutdir)

0 commit comments

Comments
 (0)