mirror of
https://github.com/natelandau/shell-scripting-templates.git
synced 2025-11-09 13:43:46 -05:00
Changed 'line' to 'progressBarLine' to reduce namespace confusion
This commit is contained in:
@@ -519,8 +519,8 @@ progressBar() {
|
||||
bar=$(printf "%0.s${bar_char}" $(seq 1 ${num}))
|
||||
fi
|
||||
# Print the progress bar.
|
||||
line=$(printf "%s [%-${width}s] (%d%%)" "Running Process" "${bar}" "${perc}")
|
||||
echo -en "${line}\r"
|
||||
progressBarLine=$(printf "%s [%-${width}s] (%d%%)" "Running Process" "${bar}" "${perc}")
|
||||
echo -en "${progressBarLine}\r"
|
||||
progressBarProgress=$[${progressBarProgress}+1]
|
||||
else
|
||||
# Clear the progress bar when complete
|
||||
|
||||
Reference in New Issue
Block a user