muttrc disable encryption when sending from ru
[dotfiles.git] / shell / .local / bin / cpm.sh
index 86cccce..a51a0aa 100755 (executable)
@@ -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