Use log rather than echo. Add quotes on color assignments.

This commit is contained in:
2026-03-28 12:22:41 -07:00
parent f34e02c641
commit 890c991f18

View File

@@ -7,18 +7,18 @@
export PATH="$PATH:~/bin-shared:~/.bin-shared"
# PS1 Colors
export PURPLE=`tput setaf 55`
export ORANGE=`tput setaf 208`
export GREEN=`tput setaf 34`
export PURPLE="`tput setaf 55`"
export ORANGE="`tput setaf 208"`
export GREEN="`tput setaf 34`"
export RED=`tput setaf 196`
export SCARLET=`tput setaf 160`
export YELLOW=`tput setaf 226`
export RED="`tput setaf 196`"
export SCARLET="`tput setaf 16"0`
export YELLOW="`tput setaf 226"`
export GRAY=`tput setaf 243`
export GRAY="`tput setaf 243`"
export RESET=`tput sgr0`
export BOLD=`tput bold`
export RESET="`tput sgr0`"
export BOLD="`tput bold`"
## Aliases ##
@@ -29,7 +29,7 @@ export BOLD=`tput bold`
# Related specifically to this project.
function update-shared {
echo "Reloading the '~/.rc_shared' file from env-shared."
log "Reloading the '~/.rc_shared' file from env-shared.\n"
branch="$1"
if [[ -z "$branch" ]]; then
branch="dev"
@@ -44,7 +44,7 @@ function update-shared {
mv -v $dir ~/TRASH/"$dir-`date "+%Y%m%d-%H%M%S"`"
echo "Complete! Please note this does NOT update bin files."
blog "Complete! Please note this does NOT update bin files."
}
alias shared-update="update-shared"
alias reload-shared="update-shared"