mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-02-26 20:46:24 +00:00
Quote array in for loop to avoid splitting
This commit is contained in:
parent
439f4bd974
commit
43cfab598c
2
fetch
2
fetch
@ -1229,7 +1229,7 @@ getbattery () {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Print each battery on a seperate line.
|
# Print each battery on a seperate line.
|
||||||
for bat in ${batteries[@]}; do
|
for bat in "${batteries[@]}"; do
|
||||||
prin "${title}${index}: ${bat}%"
|
prin "${title}${index}: ${bat}%"
|
||||||
index=$((index + 1))
|
index=$((index + 1))
|
||||||
done
|
done
|
||||||
|
Loading…
x
Reference in New Issue
Block a user