v1.3.0 = Fixed issue causing the LaunchDaemon to not be removed

+ Fixed issue causing the LaunchDaemon to not be removed
This commit is contained in:
Zack T
2020-12-09 22:22:28 -07:00
parent 8275f566c2
commit 59c85bd77e

View File

@@ -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
}