refactored log() function
parent
1dfb44feed
commit
43c132a957
16
build.sh
16
build.sh
|
@ -133,15 +133,13 @@ log() {
|
||||||
if [ "$2" = "-n" ]; then
|
if [ "$2" = "-n" ]; then
|
||||||
NO_LINE_BREAK=1
|
NO_LINE_BREAK=1
|
||||||
fi
|
fi
|
||||||
if [ $1 = 1 ]; then
|
|
||||||
COLOR=${RED}
|
case $1 in
|
||||||
fi
|
1) COLOR=${RED};;
|
||||||
if [ $1 = 2 ]; then
|
2) COLOR=${GREEN};;
|
||||||
COLOR=${GREEN}
|
4) COLOR=${YELLOW};;
|
||||||
fi
|
esac
|
||||||
if [ $1 = 4 ]; then
|
|
||||||
COLOR=${YELLOW}
|
|
||||||
fi
|
|
||||||
if [ $VERBOSITY -ge $1 ]; then
|
if [ $VERBOSITY -ge $1 ]; then
|
||||||
shift
|
shift
|
||||||
if [ $NO_LINE_BREAK = 0 ]; then
|
if [ $NO_LINE_BREAK = 0 ]; then
|
||||||
|
|
Loading…
Reference in New Issue