From 855153ce18aa14f353e86317e6e58e60a39cde92 Mon Sep 17 00:00:00 2001 From: Adina Wagner Date: Tue, 3 Nov 2020 08:18:08 +0100 Subject: [PATCH] BF: Fix a trailing slash in the script --- docs/beyond_basics/101-171-enki.rst | 2 +- docs/beyond_basics/101-172-checklist.rst | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/beyond_basics/101-171-enki.rst b/docs/beyond_basics/101-171-enki.rst index b4e7cf70f..30b313fc2 100644 --- a/docs/beyond_basics/101-171-enki.rst +++ b/docs/beyond_basics/101-171-enki.rst @@ -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 diff --git a/docs/beyond_basics/101-172-checklist.rst b/docs/beyond_basics/101-172-checklist.rst index 468864437..dc171e0bb 100644 --- a/docs/beyond_basics/101-172-checklist.rst +++ b/docs/beyond_basics/101-172-checklist.rst @@ -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 \ @@ -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")