Compare commits
1 Commits
0efee5882a
...
2b26a4fa84
Author | SHA1 | Date | |
---|---|---|---|
2b26a4fa84 |
@ -13,11 +13,8 @@ trap '[ -f $cache_file ] && rm $cache_file; exit' INT
|
|||||||
trap '[ -f $cache_file ] && rm $cache_file; exit' TERM
|
trap '[ -f $cache_file ] && rm $cache_file; exit' TERM
|
||||||
|
|
||||||
# Check if a battery is installed.
|
# Check if a battery is installed.
|
||||||
if ioreg -w0 -l|grep BatteryInstalled &> /dev/null; then
|
ioreg -w0 -l|grep BatteryInstalled &> /dev/null && \
|
||||||
has_battery=true
|
has_battery=true || has_battery=false
|
||||||
else
|
|
||||||
has_battery=false
|
|
||||||
fi
|
|
||||||
|
|
||||||
while true; do
|
while true; do
|
||||||
# Get the current CPU temperature.
|
# Get the current CPU temperature.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user