From c93d883faed563a3548509127add564777988120 Mon Sep 17 00:00:00 2001 From: Incardona Pietro <incardon@mpi-cbg.de> Date: Thu, 25 Nov 2021 13:49:53 +0100 Subject: [PATCH] Fixing 1D cid --- configure | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/configure b/configure index d02859b34..89b52e494 100755 --- a/configure +++ b/configure @@ -587,17 +587,18 @@ printf "cmake ../. $conf_options" > cmake_build_options rm ../error_code DYLD_LIBRARY_PATH=$ld_lib_pathopt cmake ../. $conf_options if [ $? != 0 ]; then - #ok something went wrong the install script analyze the return code to potentially fix the problem automatically - # Read the error code and exit with that - if [ -f ../error_code ]; then - ecod=$(cat ../error_code) - if [ x"$ecod" == x"0" ]; then - exit 1 - else - echo "Analyze error $ecod" - exit $ecod - fi - elif [ -f ../openfpm_devices/error_code ]; then + #ok something went wrong the install script analyze the return code to potentially fix the problem automatically + # Read the error code and exit with that + + if [ -f ../openfpm_devices/error_code ]; then + ecod=$(cat ../openfpm_devices/error_code) + if [ x"$ecod" == x"0" ]; then + exit 1 + else + echo "Analyze error $ecod" + exit $ecod + fi + elif [ -f ../error_code ]; then ecod=$(cat ../openfpm_devices/error_code) if [ x"$ecod" == x"0" ]; then exit 1 @@ -605,9 +606,9 @@ if [ $? != 0 ]; then echo "Analyze error $ecod" exit $ecod fi - else - exit 1 - fi + else + exit 1 + fi fi cd .. -- GitLab