refactored log() function - part 2
parent
43c132a957
commit
7ed8411378
8
build.sh
8
build.sh
|
@ -129,11 +129,11 @@ fi
|
||||||
|
|
||||||
log() {
|
log() {
|
||||||
NO_LINE_BREAK=0
|
NO_LINE_BREAK=0
|
||||||
COLOR=${COLOR_RESET}
|
case $2 in
|
||||||
if [ "$2" = "-n" ]; then
|
-n) NO_LINE_BREAK=1;;
|
||||||
NO_LINE_BREAK=1
|
esac
|
||||||
fi
|
|
||||||
|
|
||||||
|
COLOR=${COLOR_RESET}
|
||||||
case $1 in
|
case $1 in
|
||||||
1) COLOR=${RED};;
|
1) COLOR=${RED};;
|
||||||
2) COLOR=${GREEN};;
|
2) COLOR=${GREEN};;
|
||||||
|
|
Loading…
Reference in New Issue