diff options
| author | Camil Staps | 2016-03-11 09:59:11 +0100 | 
|---|---|---|
| committer | Camil Staps | 2016-11-30 19:11:07 +0100 | 
| commit | a33b05878b4b4edd334f77306d0ef849ae7dfaba (patch) | |
| tree | c529492cd564febf4536e6c2397f4045e6123cae /system/profile.symlink | |
| parent | cpmq: quiet cpm with return code (diff) | |
Fixed cpmq
Diffstat (limited to 'system/profile.symlink')
| -rw-r--r-- | system/profile.symlink | 7 | 
1 files changed, 4 insertions, 3 deletions
| diff --git a/system/profile.symlink b/system/profile.symlink index fdc7f13..320cd33 100644 --- a/system/profile.symlink +++ b/system/profile.symlink @@ -6,12 +6,13 @@ 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 +    res="$(cpm $@)" +    echo "$res" | grep -i 'Error' >/dev/null      if [ $? -eq 0 ]; then +        echo "$res" | grep -i '^\|Error\|Warning'          return -1      else +        echo "$res" | grep --color=never -i 'Finished making.'          return 0      fi  } | 
