Compare commits

..

1 Commits

Author SHA1 Message Date
67dc3dffaf Update system-info macOS user agent
Add CPU temperature to `status-info`, conditionally display battery
charge percentage, and documents the commands.
2021-02-17 20:49:29 +00:00

View File

@ -13,7 +13,7 @@ trap '[ -f $cache_file ] && rm $cache_file; exit' INT
trap '[ -f $cache_file ] && rm $cache_file; exit' TERM
# Check if a battery is installed.
ioreg -w0 -l|grep BatteryInstalled &> /dev/null && \
ioreg -w0 -l | grep BatteryInstalled &> /dev/null && \
has_battery=true || has_battery=false
while true; do