[BOOT] Print functions for debugging

This commit is contained in:
thomas committed 2017-03-27 23:09:07 +02:00
1 parent df86be2973
commit d149d4d20a
17 files changed
+450 -31

No files matched your search

+14
View File
@@ -0,0 +1,14 @@
#!/usr/bin/env bash
function ce()
{
echo -e "${@}"
}
while read line; do
echo "$line" | sed \
-e "s/^\[\(INFO\)\]/\[$(ce \\033[36m)\1$(ce \\033[0m)\]/" \
-e "s/^\[\(OK\)\]/\[$(ce \\033[32m)\1$(ce \\033[0m)\]/" \
-e "s/^\[\(WARNING\)\]/\[$(ce \\033[33m)\1$(ce \\033[0m)\]/" \
-e "s/^\[\(ERROR\)\]/\[$(ce \\033[31m)\1$(ce \\033[0m)\]/"
done