Skip to content

Commit 867a1b5

Browse files
committed
check pipe fail
1 parent 47a8902 commit 867a1b5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
# @online-doc https://github.com/oldratlee/useful-scripts/blob/master/docs/shell.md#beer-c
1010
# @author Jerry Lee (oldratlee at gmail dot com)
1111

12+
set -e
13+
set -o pipefail
14+
1215
readonly PROG="`basename "$0"`"
1316

1417
usage() {

0 commit comments

Comments
 (0)