From 342f52e8130085648b676bfb86973310ebe6d03d Mon Sep 17 00:00:00 2001 From: Norman Maurer Date: Fri, 15 Jan 2021 16:47:49 +0100 Subject: [PATCH] Let script fail if one command fail (#10945) Motivation: We should use `set -e` to ensure we fail the script if one command fails. Modifications: Add set -e to script Result: Fail fast --- .github/scripts/check_leak.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/scripts/check_leak.sh b/.github/scripts/check_leak.sh index 4b84b7feb5..1e69c52def 100755 --- a/.github/scripts/check_leak.sh +++ b/.github/scripts/check_leak.sh @@ -1,4 +1,5 @@ #!/bin/bash +set -e if [ "$#" -ne 1 ]; then echo "Expected build log as argument"