Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

match macOS Mojave Version 10.14.2 #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions PleaseSleep
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ elif [ "$ARG" == "remove" ] || [ "$ARG" == "uninstall" ]
then
echo
echo
echo "REMOVING PleaseSleep with sleepwatcher 2.2"
echo "REMOVING PleaseSleep with sleepwatcher 2.2.1"
echo "This will remove all PleaseSleep AND all Sleepwatcher files."
echo "This also includes the sleep and wake scripts."
echo
Expand All @@ -48,7 +48,7 @@ then
read
echo

echo "Removing Sleepwatcher 2.2 and all the files ..."
echo "Removing Sleepwatcher 2.2.1 and all the files ..."
sudo rm -r /usr/local/Cellar/sleepwatcher &> /dev/null
sudo rm -r /usr/local/etc/sleepwatcher &> /dev/null
sudo rm ~/Library/LaunchAgents/de.bernhard-baehr.sleepwatcher-20compatibility-localuser.plist &> /dev/null
Expand All @@ -66,7 +66,7 @@ then
echo "-------------------------------------------------------------------"
echo

echo "PleaseSleep and Sleepwatcher 2.2 are successfully removed from your lovely Mac!!"
echo "PleaseSleep and Sleepwatcher 2.2.1 are successfully removed from your lovely Mac!!"
echo
echo
echo
Expand All @@ -77,7 +77,7 @@ elif [ "$1" == "install" ]
then
echo
echo
echo "INSTALLING PleaseSleep with sleepwatcher 2.2"
echo "INSTALLING PleaseSleep with sleepwatcher 2.2.1"
echo
echo "Are you sure you want to continue?"
echo "Press Enter to continue or Crtl+c to quit"
Expand All @@ -93,12 +93,12 @@ then
read
echo

echo "Installing Sleepwatcher 2.2 (using the brew command)."
echo "Installing Sleepwatcher 2.2.1 (using the brew command)."
echo "Please follow the instructions when prompted ..."
echo "(Press ENTER key to continue.)"
read
echo
brew install sleepwatcher --quiet
brew install sleepwatcher
echo
echo
echo "(Press ENTER key to continue.)"
Expand Down Expand Up @@ -133,7 +133,7 @@ then
echo

echo "Copying *.plist file to ~/Library/LaunchAgents ..."
cp /usr/local/Cellar/sleepwatcher/2.2/de.bernhard-baehr.sleepwatcher-20compatibility-localuser.plist ~/Library/LaunchAgents
cp /usr/local/Cellar/sleepwatcher/2.2.1/de.bernhard-baehr.sleepwatcher-20compatibility-localuser.plist ~/Library/LaunchAgents
echo "Done."
echo "(Press ENTER key to continue.)"
read
Expand Down