Fix missing index line causing battery titles to not display correctly
This commit is contained in:
parent
2d5f151b7e
commit
bf4bd9a10b
1 changed files with 1 additions and 0 deletions
1
neofetch
1
neofetch
|
@ -1481,6 +1481,7 @@ getbattery () {
|
||||||
"barinfo") prin "${title}${index}: $(bar "${bat/'%'}" 100) ${bat}%" ;;
|
"barinfo") prin "${title}${index}: $(bar "${bat/'%'}" 100) ${bat}%" ;;
|
||||||
*) prin "${title}${index}: ${bat}%" ;;
|
*) prin "${title}${index}: ${bat}%" ;;
|
||||||
esac
|
esac
|
||||||
|
index=$((index + 1))
|
||||||
done
|
done
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue