diff options
author | Marco Rubin | 2023-01-17 18:55:29 +0100 |
---|---|---|
committer | Marco Rubin | 2023-01-17 18:55:29 +0100 |
commit | a810cd0b790bd63602840d2d2227540c5f6213c1 (patch) | |
tree | 27ae7522a83967a025c0240561d0e0e95114f32b /PKGBUILD | |
parent | a62dd2e63a79891b8ad566cf8c6ace76c5dac05b (diff) | |
download | aur-a810cd0b790bd63602840d2d2227540c5f6213c1.tar.gz |
Bale out when installer fails
Diffstat (limited to 'PKGBUILD')
-rwxr-xr-x[-rw-r--r--] | PKGBUILD | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/PKGBUILD b/PKGBUILD index 50cad0510b72..c3e41e71dc39 100644..100755 --- a/PKGBUILD +++ b/PKGBUILD @@ -3,8 +3,8 @@ # Contributor: Batuhan Baserdem <lastname dot firstname at gmail> pkgname=matlab -pkgrel=1 -pkgver=9.13.0.2126072 +pkgrel=2 +pkgver="9.13.0.2126072" pkgdesc='A high-level language for numerical computation and visualization' arch=(x86_64) url='https://www.mathworks.com' @@ -49,6 +49,11 @@ build() { # -inputFile makes the installation non-interactive. "$srcdir/matlab/install" -inputFile "$srcdir/matlab/installer_input.txt" + if [ -z "$(ls -A build)" ]; then + echo "==> ERROR: MATLAB installer failed, check install.log" + exit 1 + fi + echo " -> Generating desktop files..." gendesk -f -n \ --pkgname 'matlab' \ |