Skip to content

Commit 05b82f1

Browse files
committed
add link and writable check
1 parent 2c6f26b commit 05b82f1

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

v1.0/v1.0/recursive-input-directory.cwl

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,18 @@ requirements:
77
- entry: $(inputs.input_dir)
88
entryname: work_dir
99
writable: true
10-
baseCommand: [touch, work_dir/e]
10+
baseCommand:
11+
- bash
12+
- '-c'
13+
- 'if [ ! -w work_dir ]; then echo not writable; fi;
14+
if [ -L work_dir ]; then echo dir is a symlink; fi;
15+
if [ ! -w work_dir/a ]; then echo not writable; fi;
16+
if [ -L work_dir/a ]; then echo dir is a symlink; fi;
17+
if [ ! -w work_dir/c ]; then echo not writable; fi;
18+
if [ -L work_dir/c ]; then echo dir is a symlink; fi;
19+
if [ ! -w work_dir/c/d ]; then echo not writable; fi;
20+
if [ -L work_dir/c/d ]; then echo dir is a symlink; fi;
21+
touch work_dir/e'
1122
inputs:
1223
input_dir: Directory
1324
outputs:

0 commit comments

Comments
 (0)