Merge pull request #1161 from asantam/master

Made variables local in get_cols function
This commit is contained in:
black 2019-01-09 07:34:15 +02:00 committed by GitHub
commit 228fb778cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -3359,6 +3359,7 @@ get_gpu_driver() {
}
get_cols() {
local blocks blocks2 cols
if [[ "$color_blocks" == "on" ]]; then
# Convert the width to space chars.
printf -v block_width "%${block_width}s"