diff options
author | Kali Kaneko <kali@leap.se> | 2016-04-13 15:46:58 -0700 |
---|---|---|
committer | Kali Kaneko <kali@leap.se> | 2016-04-18 16:18:35 -0400 |
commit | 1194fa5779cbac2e1c4f891c64bbf2d912a6cbd0 (patch) | |
tree | 06e41da8c72969f8eb9f4bb0da3202668c5b1cca /pkg | |
parent | ec04bb1ec723f3f9a97ecc6d9daa00a5a8f86609 (diff) |
[bug] check if helper.plist file exist b4 unloading it
- Fixes: #7944
- Releases: 0.9.2
Diffstat (limited to 'pkg')
-rwxr-xr-x | pkg/osx/post-inst.sh | 1 | ||||
-rwxr-xr-x | pkg/osx/pre-inst.sh | 3 |
2 files changed, 2 insertions, 2 deletions
diff --git a/pkg/osx/post-inst.sh b/pkg/osx/post-inst.sh index 03dc4d2f..f88ea97a 100755 --- a/pkg/osx/post-inst.sh +++ b/pkg/osx/post-inst.sh @@ -1,5 +1,4 @@ #!/bin/sh - # Bitmask Post-Instalation script cp se.leap.bitmask-helper.plist /Library/LaunchDaemons/ diff --git a/pkg/osx/pre-inst.sh b/pkg/osx/pre-inst.sh index b6d17f20..1651a221 100755 --- a/pkg/osx/pre-inst.sh +++ b/pkg/osx/pre-inst.sh @@ -1,2 +1,3 @@ #!/bin/sh -launchctl unload /Library/LaunchDaemons/se.leap.bitmask-helper.plist +# Bitmask Post-Instalation script +[[ -f /Library/LaunchDaemons/se.leap.bitmask-helper.plist ]] && launchctl unload /Library/LaunchDaemons/se.leap.bitmask-helper.plist |