mirror of
https://github.com/natelandau/shell-scripting-templates.git
synced 2025-11-08 13:13:47 -05:00
Minor updates
This commit is contained in:
@@ -464,6 +464,10 @@ squeeze_lines() {
|
||||
# -----------------------------------
|
||||
|
||||
progressBar() {
|
||||
if [[ ${quiet} = "true" ]] || [ ${quiet} == "1" ]; then
|
||||
return
|
||||
fi
|
||||
|
||||
local width
|
||||
width=30
|
||||
bar_char="#"
|
||||
@@ -507,10 +511,3 @@ progressBar() {
|
||||
|
||||
tput cnorm
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user