Skip to content

Commit be0484b

Browse files
jeremiahsavagePeter Amstutz
authored andcommitted
only check that file is a link
1 parent 65e11e7 commit be0484b

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
@@ -247,7 +247,7 @@ def linkoutdir(src, tgt):
247247
def linkoutdir(src, tgt):
248248
# Need to make the link to the staged file (may be inside
249249
# the container)
250-
if os.path.exists(tgt) and os.path.islink(tgt):
250+
if os.path.islink(tgt):
251251
os.remove(tgt)
252252
os.symlink(src, tgt)
253253
stageFiles(generatemapper, linkoutdir, ignoreWritable=True)

0 commit comments

Comments
 (0)