mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-10-03 16:51:29 +00:00
Fix missing index line causing battery titles to not display correctly
This commit is contained in:
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
|
||||||
|
Reference in New Issue
Block a user