diff options
| author | Camil Staps | 2016-03-10 16:26:48 +0100 | 
|---|---|---|
| committer | Camil Staps | 2016-11-30 19:11:07 +0100 | 
| commit | 60f38a7f5f42da54dbec0855512d95b086581f64 (patch) | |
| tree | 55e169d691762679b653d77a35edc453b1b90be2 /system/profile.symlink | |
| parent | Change swp dir (diff) | |
cpmq: quiet cpm with return code
Diffstat (limited to 'system/profile.symlink')
| -rw-r--r-- | system/profile.symlink | 12 | 
1 files changed, 12 insertions, 0 deletions
| diff --git a/system/profile.symlink b/system/profile.symlink index 85b773c..fdc7f13 100644 --- a/system/profile.symlink +++ b/system/profile.symlink @@ -4,3 +4,15 @@ export PATH="$CLEAN_HOME/bin:$HOME/bin.local:$HOME/bin:$HOME/.composer/vendor/bi  export MANPATH="/usr/local/man:/usr/local/mysql/man:/usr/local/git/man:$MANPATH"  export SUDO_ASKPASS=~/bin/askpass  export _JAVA_OPTIONS='-Dawt.useSystemAAFontSettings=gasp' + +cpmq() { +    res="$(/opt/clean/bin/cpm $@)" +    echo "$res" | grep 'Finished\|Warning\|Error' +    echo "$res" | grep 'Error' >/dev/null +    if [ $? -eq 0 ]; then +        return -1 +    else +        return 0 +    fi +} + | 
