Unload before deletion
authorJacob Casper <dev@jacobcasper.com>
Mon, 25 Jan 2021 15:41:46 +0000 (09:41 -0600)
committerJacob Casper <dev@jacobcasper.com>
Mon, 25 Jan 2021 15:41:46 +0000 (09:41 -0600)
Makefile

index 8df8055..d637cf8 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -3,6 +3,6 @@ install:
        ln -s $(shell pwd)/pm.sh /usr/local/bin/pm.sh
        launchctl load -w /Library/LaunchDaemons/com.jacobcasper.pm.o*
 uninstall:
+       launchctl unload -w /Library/LaunchDaemons/com.jacobcasper.pm.o*
        rm -f /Library/LaunchDaemons/com.jacobcasper.pm*
        rm -f /usr/local/bin/pm.sh
-       launchctl unload -w /Library/LaunchDaemons/com.jacobcasper.pm.o*