-
Notifications
You must be signed in to change notification settings - Fork 534
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5d10817
commit b6fccf0
Showing
1 changed file
with
13 additions
and
1 deletion.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,31 @@ | ||
#!/bin/bash | ||
|
||
#Defines color codes for output formatting | ||
|
||
# Red color for error messages | ||
RED='\033[0;31m' | ||
|
||
# Green color for success messages | ||
GREEN='\033[0;32m' | ||
|
||
# Yellow color for warnings messages | ||
YELLOW='\033[0;33m' | ||
|
||
# No color, used to reset the color after each message | ||
NC='\033[0m' | ||
|
||
# Function to print an error message in red | ||
function echo_error() { | ||
echo -e "${RED}$1${NC}" | ||
} | ||
|
||
|
||
# Function to print a success message in green | ||
function echo_success() { | ||
echo -e "${GREEN}$1${NC}" | ||
} | ||
|
||
# Function to print a warning message in yellow | ||
function echo_warning() { | ||
echo -e "${YELLOW}$1${NC}" | ||
} | ||
|