Commit 56430831 authored by incardon's avatar incardon

Fixing wrong report in case of fail

parent 7d8798b3
Pipeline #799 failed with stages
in 43 seconds
...@@ -534,10 +534,13 @@ if [ $? != 0 ]; then ...@@ -534,10 +534,13 @@ if [ $? != 0 ]; then
# Read the error code and exit with that # Read the error code and exit with that
if [ -f ../error_code ]; then if [ -f ../error_code ]; then
ecod=$(cat ../error_code) ecod=$(cat ../error_code)
echo "Analyze error $ecod" if [ x"$ecod" == x"0" ]; then
exit $ecod exit 1
else
echo "Analyze error $ecod"
exit $ecod
fi
else else
echo "General error"
exit 1 exit 1
fi fi
fi fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment