Last active
December 15, 2021 19:34
-
-
Save PTRFRLL/70a0cf0e03099d1cc98f0abd5d88cc45 to your computer and use it in GitHub Desktop.
Bash Status indicators
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Adapted from Pi-Hole's install script | |
# https://github.com/pi-hole/pi-hole/ | |
# Define colors | |
RED='\033[91m' | |
GREEN='\033[92m' | |
CYAN='\033[96m' | |
NC='\033[0m' | |
# Status indicators | |
TICK="[${GREEN}✓${NC}]" | |
CROSS="[${RED}✗${NC}]" | |
INFO="[${CYAN}i${NC}]" | |
# Example usage | |
echo -e "${INFO} Info.." | |
echo -e "${TICK} Success!" | |
echo -e "${CROSS} Error!" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment