Improve setup and update scripts pt.2
This commit is contained in:
27
scripts/util/color.sh
Executable file
27
scripts/util/color.sh
Executable file
@ -0,0 +1,27 @@
|
||||
#!/bin/bash
|
||||
|
||||
BLACK="\033[30m"
|
||||
RED="\033[31m"
|
||||
GREEN="\033[32m"
|
||||
YELLOW="\033[33m"
|
||||
BLUE="\033[34m"
|
||||
PINK="\033[35m"
|
||||
CYAN="\033[36m"
|
||||
WHITE="\033[37m"
|
||||
RESET="\033[0;39m"
|
||||
|
||||
print_info() {
|
||||
echo -e "$RESET"["$BLUE"i"$RESET"] $@
|
||||
}
|
||||
|
||||
print_warn () {
|
||||
echo -e "$RESET"["$YELLOW"!"$RESET"] $@
|
||||
}
|
||||
|
||||
print_error () {
|
||||
echo -e "$RESET"["$RED"x"$RESET"] $@
|
||||
}
|
||||
|
||||
print_info Hello
|
||||
print_warn Hello
|
||||
print_error Hello
|
Reference in New Issue
Block a user