Fix colors not working in console messages
This commit is contained in:
@@ -7,8 +7,8 @@ C_YELLOW="\033[38;5;226m"
|
||||
|
||||
if systemctl is-active --quiet NetworkManager; then
|
||||
sudo systemctl stop NetworkManager
|
||||
echo "${C_YELLOW}Networking is now ${F_BOLD}${C_RED}inactive${NO_FORMAT}"
|
||||
echo -e "${C_YELLOW}Networking is now ${F_BOLD}${C_RED}inactive${NO_FORMAT}"
|
||||
else
|
||||
sudo systemctl start NetworkManager
|
||||
echo "${C_YELLOW}Networking is now ${F_BOLD}${C_GREEN}active${NO_FORMAT}"
|
||||
echo -e "${C_YELLOW}Networking is now ${F_BOLD}${C_GREEN}active${NO_FORMAT}"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user