Compare commits
1 Commits
1c56355ed4
...
67dc3dffaf
Author | SHA1 | Date | |
---|---|---|---|
67dc3dffaf |
@ -13,7 +13,7 @@ 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.
|
||||||
ioreg -w0 -l|grep BatteryInstalled &> /dev/null && \
|
ioreg -w0 -l | grep BatteryInstalled &> /dev/null && \
|
||||||
has_battery=true || has_battery=false
|
has_battery=true || has_battery=false
|
||||||
|
|
||||||
while true; do
|
while true; do
|
||||||
|
Loading…
x
Reference in New Issue
Block a user