From 43d3513e0213de556947041ef31041aa9403d367 Mon Sep 17 00:00:00 2001
From: Jon Azpiazu <jon.azpiazu@tecnalia.com>
Date: Thu, 8 Oct 2020 12:18:08 +0200
Subject: [PATCH] Fixes in the job returning code

---
 .gitlab-industrial-ci-kinetic-no-rosinstall.yml   | 4 ++--
 .gitlab-industrial-ci-kinetic-with-rosinstall.yml | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/.gitlab-industrial-ci-kinetic-no-rosinstall.yml b/.gitlab-industrial-ci-kinetic-no-rosinstall.yml
index 62db922..d84c347 100644
--- a/.gitlab-industrial-ci-kinetic-no-rosinstall.yml
+++ b/.gitlab-industrial-ci-kinetic-no-rosinstall.yml
@@ -113,8 +113,8 @@ bash_syntax:
   stage: postcheck
   script:
     - RET=0
-    - find . -type f -name '*.sh' -exec shellcheck -s sh {} \;
-    - find . -type f -name '*.bash' -exec shellcheck -s bash {} \;
+    - find . -type f -name '*.sh' -exec shellcheck -s sh {} + || RET=1
+    - find . -type f -name '*.bash' -exec shellcheck -s bash {} + || RET=1
     - exit $RET
   when: always
   tags:
diff --git a/.gitlab-industrial-ci-kinetic-with-rosinstall.yml b/.gitlab-industrial-ci-kinetic-with-rosinstall.yml
index 6c8904c..02a669a 100644
--- a/.gitlab-industrial-ci-kinetic-with-rosinstall.yml
+++ b/.gitlab-industrial-ci-kinetic-with-rosinstall.yml
@@ -115,8 +115,8 @@ bash_syntax:
   stage: postcheck
   script:
     - RET=0
-    - find . -type f -name '*.sh' -exec shellcheck -s sh {} \;
-    - find . -type f -name '*.bash' -exec shellcheck -s bash {} \;
+    - find . -type f -name '*.sh' -exec shellcheck -s sh {} + || RET=1
+    - find . -type f -name '*.bash' -exec shellcheck -s bash {} + || RET=1
     - exit $RET
   when: always
   tags:
-- 
GitLab