From e7d677950b64232d52d63b6f57abf5bcd8c26d52 Mon Sep 17 00:00:00 2001
From: Incardona Pietro <incardon@mpi-cbg.de>
Date: Tue, 29 Mar 2022 14:43:36 +0200
Subject: [PATCH] Fixing HDF5 installation

---
 script/install_HDF5.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/script/install_HDF5.sh b/script/install_HDF5.sh
index c04d71358..652113b83 100755
--- a/script/install_HDF5.sh
+++ b/script/install_HDF5.sh
@@ -24,13 +24,13 @@ if [ ! -d "$1/ZLIB"  -a x"$platform" != x"cygwin" ]; then
 
   CC=mpicc ./configure --prefix=$1/ZLIB
   make -j $2
-  cd ..
   if [ $? -eq 0 ]; then
     make check install
   else
     echo -e "\033[91;5;1m ZLIB Installation FAILED \033[0m"
     exit 1
   fi
+  cd ..
 
 else
   echo "ZLIB is already installed"
-- 
GitLab