Quote array in for loop to avoid splitting

This commit is contained in:
Dylan 2016-02-02 14:13:09 +11:00
parent 439f4bd974
commit 43cfab598c
1 changed files with 1 additions and 1 deletions

2
fetch
View File

@ -1229,7 +1229,7 @@ getbattery () {
fi
# Print each battery on a seperate line.
for bat in ${batteries[@]}; do
for bat in "${batteries[@]}"; do
prin "${title}${index}: ${bat}%"
index=$((index + 1))
done