Skip to content

Commit

Permalink
Let script fail if one command fail (netty#10945)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
normanmaurer authored Jan 15, 2021
1 parent 9a02832 commit 342f52e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/scripts/check_leak.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash
set -e

if [ "$#" -ne 1 ]; then
echo "Expected build log as argument"
Expand Down

0 comments on commit 342f52e

Please sign in to comment.