X-Git-Url: https://git.martlubbers.net/?a=blobdiff_plain;f=shell%2F.local%2Fbin%2Fcpm.sh;fp=shell%2F.local%2Fbin%2Fcpm.sh;h=86cccce4b51fd7370e72be78fef89394c252339c;hb=5f126fd46e1d5eadfe2d8290cd23713be3b5e9c2;hp=76697426825fcc3e29d9e8aa50c982222884fe76;hpb=de5c05200addd56fd51b2ce3efca58870b8642bb;p=dotfiles.git diff --git a/shell/.local/bin/cpm.sh b/shell/.local/bin/cpm.sh index 7669742..86cccce 100755 --- a/shell/.local/bin/cpm.sh +++ b/shell/.local/bin/cpm.sh @@ -1,13 +1,17 @@ #!/bin/bash set -e -cpm "$@" | grep -v\ +cpm "$@" |& grep -v\ -e "^Warning: Multiple file instances: 'Makefile'"\ - -e "^Analyzing '"\ + -e "^Analyzing"\ -e "^iTasks Resource Collector: "\ -e "^Warning: Unable to setup directory cache: "\ -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