13 lines
310 B
Bash
Executable File
13 lines
310 B
Bash
Executable File
#!/bin/bash
|
|
|
|
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
|
. "$DIR/cpad.sh"
|
|
|
|
CMD=`cpad "$1" 8 " "`
|
|
if [[ -s /tmp/.`whoami`-build-errors ]] ; then
|
|
cat /tmp/.`whoami`-build-errors
|
|
echo -e -n "\r\033[1;33m${CMD}${2}\033[0m\n"
|
|
else
|
|
echo -e -n "\r\033[A\033[1;32m${CMD}${2}\033[0m\033[K\n"
|
|
fi
|