* Ensure to uncompress ifort archive onlyif ifort is not available on the system.

This commit is contained in:
gardouille 2015-04-23 16:37:48 +02:00
parent f417835f79
commit a381759e86
1 changed files with 8 additions and 6 deletions

View File

@ -20,12 +20,14 @@ class ifort::install {
}
## Archive
# Uncompress
exec { "Uncompress ${ifort::ifort_pkg_path}":
command => "zcat ${ifort::ifort_pkg_path} | tar xvf - -C ${ifort::ifort_install_tmp_path} --",
creates => $ifort::ifort_install_script_path,
onlyif => "test -f ${ifort::ifort_pkg_path}",
if $::is_ifort == 'false' {
# Uncompress
exec { "Uncompress ${ifort::ifort_pkg_path}":
command => "zcat ${ifort::ifort_pkg_path} | tar xvf - -C ${ifort::ifort_install_tmp_path} --",
creates => $ifort::ifort_install_script_path,
onlyif => "test -f ${ifort::ifort_pkg_path}",
}
}
} # Private class: ifort::install