From 1194fa5779cbac2e1c4f891c64bbf2d912a6cbd0 Mon Sep 17 00:00:00 2001 From: Kali Kaneko Date: Wed, 13 Apr 2016 15:46:58 -0700 Subject: [bug] check if helper.plist file exist b4 unloading it - Fixes: #7944 - Releases: 0.9.2 --- pkg/osx/post-inst.sh | 1 - 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 -- cgit v1.2.3