new version of syncTemplate

This commit is contained in:
Nathaniel Landau
2015-01-08 22:33:53 -05:00
parent e380c9e274
commit 03163129f1
2 changed files with 317 additions and 140 deletions

View File

@@ -80,7 +80,7 @@ function _alert() { #my function
local color="${purple}"
fi
if [ "${1}" = "header" ]; then
local color="${bold}""${purple}"
local color="${bold}""${tan}"
fi
if [ "${1}" = "input" ]; then
local color="${bold}"
@@ -115,8 +115,11 @@ function input() { local _message="${@}"; echo "$(_alert input)"; }
function header() { local _message="========== ${@} ========== "; echo "$(_alert header)"; }
# Log messages when verbose is set to "1"
verbose() { (($verbose)) && info "$@"; }
verbose() {
if [ "${verbose}" == "1" ]; then
info "$@"
fi
}
# Notes to self
# ####################