diff --git a/neurodocker/templates/freesurfer.yaml b/neurodocker/templates/freesurfer.yaml index 65ef1f99..972d9ea8 100644 --- a/neurodocker/templates/freesurfer.yaml +++ b/neurodocker/templates/freesurfer.yaml @@ -84,7 +84,7 @@ binaries: echo "Downloading FreeSurfer ..." mkdir -p {{ self.install_path }} curl -fL {{ self.urls[self.version] }} \ - | tar -xz -C {{ self.install_path }} --owner root --group root --no-same-owner --strip-components 1 {% if self.exclude_paths -%}\ + | tar -xz -C {{ self.install_path }} --owner root --group root --no-same-owner --transform='s,freesurfer/,,' {% if self.exclude_paths -%}\ {%- for exclude_path in self.exclude_paths.split() %} {% if not loop.last -%} --exclude='{{ exclude_path }}' \