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() {
if [[ ${quiet} = "true" ]] || [ ${quiet} == "1" ]; then
return
fi
local width
width=30
bar_char="#"
@@ -506,11 +510,4 @@ progressBar() {
fi
tput cnorm
}
}

View File

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