Changed 'line' to 'progressBarLine' to reduce namespace confusion

This commit is contained in:
Nathaniel Landau
2016-02-08 11:35:31 -05:00
parent a715e23547
commit ae03b9b81b

View File

@@ -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