From 8a2a7fc6e78d49059e22f9a6b14ac4395e48e600 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tibor=20=C5=A0imko?= Date: Thu, 25 Jan 2024 12:19:26 +0100 Subject: [PATCH] ci(shellcheck): fix exit code propagation (#64) Return properly the exit code status of shellcheck command when looping through shell script files. --- run-tests.sh | 2 +- start.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/run-tests.sh b/run-tests.sh index a0d1864..b9a6cb8 100755 --- a/run-tests.sh +++ b/run-tests.sh @@ -28,7 +28,7 @@ check_commitlint () { } check_shellcheck () { - find . -name "*.sh" -exec shellcheck {} \; + find . -name "*.sh" -exec shellcheck {} \+ } check_pydocstyle () { diff --git a/start.sh b/start.sh index 7b9dc1e..b0e580c 100755 --- a/start.sh +++ b/start.sh @@ -1,7 +1,7 @@ -#!/bin/sh +#!/usr/bin/env bash # This file is part of REANA. -# Copyright (C) 2017, 2018, 2021, 2023 CERN. +# Copyright (C) 2017, 2018, 2021, 2023, 2024 CERN. # # REANA is free software; you can redistribute it and/or modify it # under the terms of the MIT License; see LICENSE file for more details.