mirror of
https://github.com/natelandau/shell-scripting-templates.git
synced 2025-11-10 06:03:47 -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}))
|
bar=$(printf "%0.s${bar_char}" $(seq 1 ${num}))
|
||||||
fi
|
fi
|
||||||
# Print the progress bar.
|
# Print the progress bar.
|
||||||
line=$(printf "%s [%-${width}s] (%d%%)" "Running Process" "${bar}" "${perc}")
|
progressBarLine=$(printf "%s [%-${width}s] (%d%%)" "Running Process" "${bar}" "${perc}")
|
||||||
echo -en "${line}\r"
|
echo -en "${progressBarLine}\r"
|
||||||
progressBarProgress=$[${progressBarProgress}+1]
|
progressBarProgress=$[${progressBarProgress}+1]
|
||||||
else
|
else
|
||||||
# Clear the progress bar when complete
|
# Clear the progress bar when complete
|
||||||
|
|||||||
Reference in New Issue
Block a user