vim-patch.sh: Remove "set -o pipefail"

grep 2.26 changed its behavior when redirecting its output to /dev/null
such that it exits as soon as one match is found.  This causes sed to
get a SIGPIPE which, due to "set -o pipefail", falsely implies that the
patch is not applied.

Removing "set -o pipefail" preserves the good exit status from grep.
This commit is contained in:
James McCoy 2016-11-15 07:53:01 -05:00
parent d28d108648
commit 10c72cd365
No known key found for this signature in database
GPG Key ID: DFE691AE331BA3DB

View File

@ -2,7 +2,6 @@
set -e
set -u
set -o pipefail
# Use privileged mode, which e.g. skips using CDPATH.
set -p