Skip to content

Commit 961c7a5

Browse files
authored
Fixes bug in determining whether to unzip or untar ANTs download (#680)
* added latest ANTs versions * added new versions to check to unzip instead of untar download * more robust checking for zip and tar
1 parent 1e31076 commit 961c7a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

neurodocker/templates/ants.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ binaries:
4747
instructions: |
4848
{{ self.install_dependencies() }}
4949
echo "Downloading ANTs ..."
50-
{% if (self.version == "2.4.1" or self.version == "2.4.2" or self.version == "2.4.3") -%}
50+
{% if self.urls[self.version].endswith('.zip') -%}
5151
curl -fsSL -o ants.zip {{ self.urls[self.version] }}
5252
unzip ants.zip -d /opt
5353
mv {{ self.install_path }}/bin/* {{ self.install_path }}

0 commit comments

Comments
 (0)