From 59c85bd77ed24c80a7cf282aad0890e3880d41d8 Mon Sep 17 00:00:00 2001 From: Zack T Date: Wed, 9 Dec 2020 22:22:28 -0700 Subject: [PATCH] v1.3.0 = Fixed issue causing the LaunchDaemon to not be removed + Fixed issue causing the LaunchDaemon to not be removed --- Software/uninstall_Spirion.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Software/uninstall_Spirion.sh b/Software/uninstall_Spirion.sh index a37ef9e..ea4bfcc 100644 --- a/Software/uninstall_Spirion.sh +++ b/Software/uninstall_Spirion.sh @@ -3,11 +3,11 @@ ################################################################################################### # Script Name: uninstall_Spirion.sh # By: Zack Thompson / Created: 6/3/2019 -# Version: 1.2.0 / Updated: 1/24/2020 / By: ZT +# Version: 1.3.0 / Updated: 12/9/2020 / By: ZT # # Description: This script uninstalls Spirion and Identity Finder. # -# Note: This is a customzied version of the uninstall script provided by Spirion to be run from +# Note: This is a customized version of the uninstall script provided by Spirion to be run from # a management solution, such as Jamf Pro. # ################################################################################################### @@ -214,7 +214,8 @@ UnloadAndDeleteLaunchAgents () { RemoveFileOrDirectory "/Users/${currentUser}/Library/LaunchAgents/$IDFReverseDomainRoot.*"; fi - if (($askForPassword==1)); then + # if (($askForPassword==1)); then + if (($askForPassword==0)); then UnloadAndDeleteLaunchDaemon; fi }