Skip to content

Commit 10ed01b

Browse files
committed
Fix install.sh exit status from piping functions
Functions calling `exit n` were causing the script to exit 0 sometimes when piping function output into a paginator.
1 parent 8aeaf56 commit 10ed01b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

install.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@
5454
#
5555
# __________ Process command-line arguments and environment variables _____________
5656

57+
# Make sure we really exit with correct status when piping function output
58+
set -o pipefail
59+
5760
this_script=`basename $0`
5861

5962
# Interpret the first command-line argument, if present, as the OpenCoarrays installation path.

0 commit comments

Comments
 (0)