From 7cc1a5ca51553b54fae6d752f340e92e395d4294 Mon Sep 17 00:00:00 2001 From: Zack T Date: Tue, 30 Jan 2018 16:55:30 -0700 Subject: [PATCH] v1.4.1 = Fixed installation for 2017a + 2017a requires the licenseFile location to be provided in the installer_input.txt file -- so I'm giving it a 'dummy file' to compete the install --- Software/Matlab/install_MatLab.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Software/Matlab/install_MatLab.sh b/Software/Matlab/install_MatLab.sh index 4e1175e..ca70e37 100644 --- a/Software/Matlab/install_MatLab.sh +++ b/Software/Matlab/install_MatLab.sh @@ -3,7 +3,7 @@ ################################################################################################### # Script Name: install_MatLab.sh # By: Zack Thompson / Created: 3/6/2017 -# Version: 1.4 / Updated: 1/25/2018 / By: ZT +# Version: 1.4.1 / Updated: 1/29/2018 / By: ZT # # Description: This script installs MatLab. # @@ -26,6 +26,8 @@ /bin/echo "Installing Matlab..." if [[ $version == "2017a" ]]; then + # Inject dummy location to the installer.input file -- hacky, but works + LANG=C /usr/bin/sed -Ei '' 's,(#)?licensePath=.*,'"licensePath=${pkgDir}/installer_input.txt"',' "${pkgDir}/installer_input.txt" # -mode silent did not work in the option file for me. exitStatus=$("${pkgDir}/install" -mode silent -inputFile "${pkgDir}/installer_input.txt") else