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() {
NO_LINE_BREAK=0
COLOR=${COLOR_RESET}
if [ "$2" = "-n" ]; then
NO_LINE_BREAK=1
fi
case $2 in
-n) NO_LINE_BREAK=1;;
esac
COLOR=${COLOR_RESET}
case $1 in
1) COLOR=${RED};;
2) COLOR=${GREEN};;