scripts/vim-patch.sh: continue when patching with -P fails (#7790)

The `set -e` caused the script to stop in case `patch` fails, but it is
better to continue giving instructions.
This commit is contained in:
Daniel Hahler
2017-12-30 14:15:51 +01:00
committed by Justin M. Keyes
parent 9dc90fcde1
commit 0d548b73ef

View File

@@ -234,7 +234,7 @@ stage_patch() {
output="$(commit_message | git commit --allow-empty --file 2>&1 -)" &&
echo "${output}" ||
(echo "${output}"; false)
if test -n "$try_apply" ; then
if ! check_executable patch; then
printf "\n✘ 'patch' command not found\n"