Compare commits
1 Commits
67dc3dffaf
...
1c56355ed4
Author | SHA1 | Date | |
---|---|---|---|
1c56355ed4 |
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user