add neofetch, new server sig
[dotfiles.git] / shell / .local / bin / cpm.sh
index 7669742..86cccce 100755 (executable)
@@ -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