Skip to content

Commit

Permalink
BF: Fix a trailing slash in the script
Browse files Browse the repository at this point in the history
  • Loading branch information
adswa committed Nov 3, 2020
1 parent 2cfa9b4 commit 855153c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/beyond_basics/101-171-enki.rst
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ At this point, the workflow misses a tweak that is necessary in fMRIprep to enab
# pybids (inside fmriprep) gets angry when it sees dangling symlinks
# of .json files -- wipe them out, spare only those that belong to
# the participant we want to process in this job
find sourcedata -mindepth 2 -name '*.json' -a ! -wholename "$1"/'*' -delete
find sourcedata -mindepth 2 -name '*.json' -a ! -wholename "$1"'*' -delete
# next one is important to get job-reruns correct. We remove all anticipated
# output, such that fmriprep isn't confused by the presence of stale
Expand Down
4 changes: 2 additions & 2 deletions docs/beyond_basics/101-172-checklist.rst
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ If you don't want to do this, here are a few benchmarks:
git checkout -b "job-$JOBID"
mkdir -p .git/tmp/wdir
find sourcedata -mindepth 2 -name '*.json' -a ! -wholename "$1"/'*' -delete
find sourcedata -mindepth 2 -name '*.json' -a ! -wholename "$1"'*' -delete
# add your required fMRIprep parametrization
datalad containers-run \
Expand Down Expand Up @@ -188,7 +188,7 @@ If you don't want to do this, here are a few benchmarks:
git -C freesurfer checkout -b "job-$JOBID"
mkdir -p .git/tmp/wdir
find sourcedata -mindepth 2 -name '*.json' -a ! -wholename "$1"/'*' -delete
find sourcedata -mindepth 2 -name '*.json' -a ! -wholename "$1"'*' -delete
(cd fmriprep && rm -rf logs "$subid" "$subid.html" dataset_description.json desc-*.tsv)
(cd freesurfer && rm -rf fsaverage "$subid")
Expand Down

0 comments on commit 855153c

Please sign in to comment.