mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-10-04 09:08:38 +00:00
Merge pull request #1161 from asantam/master
Made variables local in get_cols function
This commit is contained in:
1
neofetch
1
neofetch
@@ -3359,6 +3359,7 @@ get_gpu_driver() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
get_cols() {
|
get_cols() {
|
||||||
|
local blocks blocks2 cols
|
||||||
if [[ "$color_blocks" == "on" ]]; then
|
if [[ "$color_blocks" == "on" ]]; then
|
||||||
# Convert the width to space chars.
|
# Convert the width to space chars.
|
||||||
printf -v block_width "%${block_width}s"
|
printf -v block_width "%${block_width}s"
|
||||||
|
Reference in New Issue
Block a user