mirror of
https://github.com/XcodesOrg/XcodesApp.git
synced 2026-02-02 11:33:02 +01:00
19 lines
557 B
Bash
Executable File
19 lines
557 B
Bash
Executable File
#!/bin/bash
|
|
|
|
PRIVILEGED_HELPER_LABEL=com.xcodesorg.xcodesapp.Helper
|
|
|
|
sudo rm /Library/PrivilegedHelperTools/$PRIVILEGED_HELPER_LABEL
|
|
sudo rm /Library/LaunchDaemons/$PRIVILEGED_HELPER_LABEL.plist
|
|
sudo launchctl bootout system/$PRIVILEGED_HELPER_LABEL #'Boot-out failed: 36: Operation now in progress' is OK output
|
|
|
|
echo "Querying launchd..."
|
|
LAUNCHD_OUTPUT=$(sudo launchctl list | grep $PRIVILEGED_HELPER_LABEL)
|
|
|
|
|
|
if [ -z "$LAUNCHD_OUTPUT" ]
|
|
then
|
|
echo "Finished successfully."
|
|
else
|
|
echo "WARNING: $PRIVILEGED_HELPER_LABEL is not removed"
|
|
fi
|