refactored log() function - part 2

master
Martin Scheidt 2022-03-11 11:04:36 +01:00
parent 43c132a957
commit 7ed8411378
1 changed files with 4 additions and 4 deletions

View File

@ -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};;