Minor updates

This commit is contained in:
Nathaniel Landau
2015-07-06 12:35:33 -04:00
parent 472c00a6c3
commit 7093261f4f
2 changed files with 6 additions and 10 deletions

View File

@@ -464,6 +464,10 @@ squeeze_lines() {
# ----------------------------------- # -----------------------------------
progressBar() { progressBar() {
if [[ ${quiet} = "true" ]] || [ ${quiet} == "1" ]; then
return
fi
local width local width
width=30 width=30
bar_char="#" bar_char="#"
@@ -507,10 +511,3 @@ progressBar() {
tput cnorm tput cnorm
} }

View File

@@ -81,7 +81,7 @@ function header() { local _message="========== ${@} ========== "; echo "$(_
# Log messages when verbose is set to "true" # Log messages when verbose is set to "true"
verbose() { verbose() {
if [ "${verbose}" = "true" ] || [ ${verbose} == "1" ]; then if [[ "${verbose}" = "true" ]] || [ ${verbose} == "1" ]; then
debug "$@" debug "$@"
fi fi
} }
@@ -111,7 +111,6 @@ do
if [[ "${utility_file}" == *"utils.sh"* ]]; then if [[ "${utility_file}" == *"utils.sh"* ]]; then
continue continue
fi fi
echo "Attempting to source: $utility_file"
source "$utility_file" source "$utility_file"
fi fi
done done