X-Git-Url: https://git.martlubbers.net/?a=blobdiff_plain;f=shell%2F.local%2Fbin%2Fcpm.sh;h=a51a0aa6df8217a0da31006bd5675ae1e2bb79d3;hb=3232ebec1b74563f7dbd3ff7652c44976b6a705d;hp=86cccce4b51fd7370e72be78fef89394c252339c;hpb=5f126fd46e1d5eadfe2d8290cd23713be3b5e9c2;p=dotfiles.git diff --git a/shell/.local/bin/cpm.sh b/shell/.local/bin/cpm.sh index 86cccce..a51a0aa 100755 --- a/shell/.local/bin/cpm.sh +++ b/shell/.local/bin/cpm.sh @@ -1,5 +1,5 @@ #!/bin/bash -set -e +set -eo pipefail cpm "$@" |& grep -v\ -e "^Warning: Multiple file instances: 'Makefile'"\ -e "^Analyzing"\ @@ -8,10 +8,6 @@ cpm "$@" |& grep -v\ -e "^]: is older than .abc file"\ -e "^First found at:"\ -e "^Also found at:" -if [[ "${PIPESTATUS[0]}" -ne 0 ]] -then - exit "${PIPESTATUS[0]}" -fi if git rev-parse --show-toplevel 2>/dev/null then @@ -22,5 +18,5 @@ then |& grep -v\ -e "^Doc warning: expected @type for '"\ -e "^Doc error: missing leading asterisk in '"\ - -e "^Could not get full path for '" + -e "^Could not get full path for '" || true fi