Skip to content
Snippets Groups Projects
Commit c93d883f authored by Pietro Incardona's avatar Pietro Incardona
Browse files

Fixing 1D cid

parent aa0fa358
No related branches found
No related tags found
No related merge requests found
...@@ -587,17 +587,18 @@ printf "cmake ../. $conf_options" > cmake_build_options ...@@ -587,17 +587,18 @@ printf "cmake ../. $conf_options" > cmake_build_options
rm ../error_code rm ../error_code
DYLD_LIBRARY_PATH=$ld_lib_pathopt cmake ../. $conf_options DYLD_LIBRARY_PATH=$ld_lib_pathopt cmake ../. $conf_options
if [ $? != 0 ]; then if [ $? != 0 ]; then
#ok something went wrong the install script analyze the return code to potentially fix the problem automatically #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 # Read the error code and exit with that
if [ -f ../error_code ]; then
ecod=$(cat ../error_code) if [ -f ../openfpm_devices/error_code ]; then
if [ x"$ecod" == x"0" ]; then ecod=$(cat ../openfpm_devices/error_code)
exit 1 if [ x"$ecod" == x"0" ]; then
else exit 1
echo "Analyze error $ecod" else
exit $ecod echo "Analyze error $ecod"
fi exit $ecod
elif [ -f ../openfpm_devices/error_code ]; then fi
elif [ -f ../error_code ]; then
ecod=$(cat ../openfpm_devices/error_code) ecod=$(cat ../openfpm_devices/error_code)
if [ x"$ecod" == x"0" ]; then if [ x"$ecod" == x"0" ]; then
exit 1 exit 1
...@@ -605,9 +606,9 @@ if [ $? != 0 ]; then ...@@ -605,9 +606,9 @@ if [ $? != 0 ]; then
echo "Analyze error $ecod" echo "Analyze error $ecod"
exit $ecod exit $ecod
fi fi
else else
exit 1 exit 1
fi fi
fi fi
cd .. cd ..
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment