aboutsummaryrefslogtreecommitdiff
path: root/system
diff options
context:
space:
mode:
authorCamil Staps2016-03-11 09:59:11 +0100
committerCamil Staps2016-11-30 19:11:07 +0100
commita33b05878b4b4edd334f77306d0ef849ae7dfaba (patch)
treec529492cd564febf4536e6c2397f4045e6123cae /system
parentcpmq: quiet cpm with return code (diff)
Fixed cpmq
Diffstat (limited to 'system')
-rw-r--r--system/profile.symlink7
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
}