2011-10-28 02:39:40 +04:00
|
|
|
#!/bin/bash
|
2012-01-26 03:07:42 +04:00
|
|
|
|
|
|
|
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
|
|
|
. "$DIR/cpad.sh"
|
2011-10-28 02:39:40 +04:00
|
|
|
|
|
|
|
CMD=`cpad "$1" 8 " "`
|
2012-01-19 05:52:11 +04:00
|
|
|
if [[ -s /tmp/.`whoami`-build-errors ]] ; then
|
2013-12-06 07:30:19 +04:00
|
|
|
echo -e -n "\r\033[1;33m${CMD}${2}\033[0m\033[K\n"
|
2012-12-06 09:40:30 +04:00
|
|
|
cat /tmp/.`whoami`-build-errors
|
2011-10-28 02:39:40 +04:00
|
|
|
else
|
2012-12-06 09:40:30 +04:00
|
|
|
echo -e -n "\r\033[1;32m${CMD}${2}\033[0m\033[K\n"
|
2011-10-28 02:39:40 +04:00
|
|
|
fi
|