Skip to content

Commit

Permalink
fix, Constant popup on iMac #32. pending verification.
Browse files Browse the repository at this point in the history
also, when I get a change to get on a desktop computer.
  • Loading branch information
MichaelDimmitt committed Feb 6, 2018
1 parent e332c6f commit e40d305
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .hide/app/install/battery_check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,13 @@ elif [ "$result" == "No" ] ; then
fi | tail -n 1
fi
else
osascript -e 'display notification " something went wrong, contact michael; did some bad programming." with title "Aerial Desktop"'
if [ "$(ioreg -n AppleSmartBattery | grep -c Max)" -ge 1 ];
then osascript -e 'display notification " something went wrong, contact michael; did some bad programming." with title "Aerial Desktop"'
else osascript -e 'display notification " Desktop Computer not needing battery consideration." with title "Aerial Desktop activating program."';
if curl --silent --head https://github.com/michaeldimmitt/aerial_desktop;--
then $DIR/./3_install_launch_agent.sh# echo Internet status: OK;-
else osascript -e 'display notification "Please connect your computer to internet." with title "Aerial Desktop"'# echo Internet status: ERROR;-
fi | tail -n 1
fi

fi

0 comments on commit e40d305

Please sign in to comment.