Skip to content

Commit

Permalink
Merge pull request #15 from sargsyan/reload-service-if-it-is-installed
Browse files Browse the repository at this point in the history
Reload the service if it is installed
  • Loading branch information
sargsyan authored Nov 1, 2019
2 parents 0420580 + 437bd57 commit 2a67538
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ function main() {
mkdir -p $LAUNCH_AGENTS_DIR
cp org.github-notif.get.plist $LAUNCH_AGENTS_DIR &&
rm org.github-notif.get.plist
launchctl unload $LAUNCH_AGENTS_DIR/org.github-notif.get.plist > /dev/null # unload the old service when it was loaded before. Ignore the error message if service is not insatlled
launchctl load -w $LAUNCH_AGENTS_DIR/org.github-notif.get.plist
local github_url=https://github.com
if ! config_exists $github_url; then
Expand Down

0 comments on commit 2a67538

Please sign in to comment.