mirror of
https://github.com/natelandau/shell-scripting-templates.git
synced 2025-11-09 21:53:47 -05:00
Minor updates
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user