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
This commit is contained in:
parent
9a02832fdb
commit
342f52e813
1
.github/scripts/check_leak.sh
vendored
1
.github/scripts/check_leak.sh
vendored
@ -1,4 +1,5 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
set -e
|
||||||
|
|
||||||
if [ "$#" -ne 1 ]; then
|
if [ "$#" -ne 1 ]; then
|
||||||
echo "Expected build log as argument"
|
echo "Expected build log as argument"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user