diff --git a/examples/01_real-from-ideal.sh b/examples/01_real-from-ideal.sh
index 0d67bf7aed4cebc7c3909967250a1593da9571bf..fc1969533c0e92bc009255f651d7a1967024df8d 100755
--- a/examples/01_real-from-ideal.sh
+++ b/examples/01_real-from-ideal.sh
@@ -156,7 +156,7 @@ if [ "$STAGE" -eq 0 ]; then
   autosubmit setstatus ${EXPID} -ft PREPARE_EXPERIMENT -t SUSPENDED -s -np
   autosubmit run ${EXPID}
   # Check if there are failed jobs
-  [ -s autosubmit/${EXPID}/tmp/ASLOGS/jobs_failed_status.log ] || exit 1
+  [ -s autosubmit/${EXPID}/tmp/ASLOGS/jobs_failed_status.log ] && exit 1
 fi
 
 if [ "$STAGE" -eq 1 ]; then
@@ -165,7 +165,7 @@ if [ "$STAGE" -eq 1 ]; then
   autosubmit setstatus ${EXPID} -ft EXTPAR_FROM_IDEALIZED FG_ANA_FROM_IDEALIZED -t SUSPENDED -s -np
   autosubmit run ${EXPID}
   # Check if there are failed jobs
-  [ -s autosubmit/${EXPID}/tmp/ASLOGS/jobs_failed_status.log ] || exit 1
+  [ -s autosubmit/${EXPID}/tmp/ASLOGS/jobs_failed_status.log ] && exit 1
 fi
 
 if [ "$STAGE" -eq 2 ]; then
@@ -174,7 +174,7 @@ if [ "$STAGE" -eq 2 ]; then
   autosubmit setstatus ${EXPID} -ft TRANSFER -t SUSPENDED -s -np
   autosubmit run ${EXPID}
   # Check if there are failed jobs
-  [ -s autosubmit/${EXPID}/tmp/ASLOGS/jobs_failed_status.log ] || exit 1
+  [ -s autosubmit/${EXPID}/tmp/ASLOGS/jobs_failed_status.log ] && exit 1
 fi
 
 if [ "$STAGE" -eq 3 ]; then
@@ -182,5 +182,5 @@ if [ "$STAGE" -eq 3 ]; then
   autosubmit setstatus ${EXPID} -fs SUSPENDED -t WAITING -s -np
   autosubmit run ${EXPID}
   # Check if there are failed jobs
-  [ -s autosubmit/${EXPID}/tmp/ASLOGS/jobs_failed_status.log ] || exit 1
+  [ -s autosubmit/${EXPID}/tmp/ASLOGS/jobs_failed_status.log ] && exit 1
 fi