Skip to content

Commit

Permalink
Use --transform instead of --strip-components
Browse files Browse the repository at this point in the history
  • Loading branch information
mvdoc committed Jul 5, 2024
1 parent 89418cc commit 2dc1f11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion neurodocker/templates/freesurfer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 {% if self.version in ("7.4.1") %}2{% else %}1{% endif %} {% 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 }}' \
Expand Down

0 comments on commit 2dc1f11

Please sign in to comment.