Skip to content

Commit

Permalink
Fix file existing check in uninstall_core.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
tekezo committed May 12, 2024
1 parent b2d8bd6 commit 104c216
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/scripts/uninstall_core.sh
Expand Up @@ -7,19 +7,19 @@ export PATH
# Unload before install
#

if [ /Library/LaunchDaemons/org.pqrs.karabiner.karabiner_grabber.plist ]; then
if [ -f /Library/LaunchDaemons/org.pqrs.karabiner.karabiner_grabber.plist ]; then
launchctl bootout system /Library/LaunchDaemons/org.pqrs.karabiner.karabiner_grabber.plist
fi

#
# Unload files which are installed in previous versions
#

if [ /Library/LaunchDaemons/org.pqrs.karabiner.karabiner_kextd.plist ]; then
if [ -f /Library/LaunchDaemons/org.pqrs.karabiner.karabiner_kextd.plist ]; then
launchctl bootout system /Library/LaunchDaemons/org.pqrs.karabiner.karabiner_kextd.plist
fi

if [ /Library/LaunchDaemons/org.pqrs.karabiner.karabiner_observer.plist ]; then
if [ -f /Library/LaunchDaemons/org.pqrs.karabiner.karabiner_observer.plist ]; then
launchctl bootout system /Library/LaunchDaemons/org.pqrs.karabiner.karabiner_observer.plist
fi

Expand Down

0 comments on commit 104c216

Please sign in to comment.