diff options
-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 } |