-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Still improving modularity in the shell scripts
- Loading branch information
Showing
10 changed files
with
341 additions
and
280 deletions.
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 |
---|---|---|
|
@@ -24,3 +24,4 @@ venv/ | |
env/ | ||
*.egg-info/ | ||
__pycache__/ | ||
/scripts/is_function.sh |
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
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
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
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
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,7 +1,21 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Colors used when printing. | ||
export GREEN=$(tput setaf 2) | ||
export RED=$(tput setaf 1) | ||
export NORMAL=$(tput sgr0) | ||
export YELLOW=$(tput setaf 3) | ||
export ALREADY_SOURCED_COLORS | ||
|
||
if [ -z "${ALREADY_SOURCED_COLORS}" ] | ||
then | ||
# Colors used when printing. | ||
export NORMAL | ||
NORMAL=$(tput sgr0) | ||
|
||
export RED | ||
RED=$(tput setaf 1) | ||
|
||
export GREEN | ||
GREEN=$(tput setaf 2) | ||
|
||
export YELLOW | ||
YELLOW=$(tput setaf 3) | ||
|
||
ALREADY_SOURCED_COLORS="true" | ||
fi |
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
Oops, something went wrong.