From 6dffcae12220c9adb1b9cb9b9a7af52e45dd02e2 Mon Sep 17 00:00:00 2001 From: burrrble Date: Tue, 15 Jul 2025 17:10:24 -0500 Subject: [PATCH] Fixing ABM DEP check bug --- .../UninstallAppleBloatwareApps.zsh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/macOS/Config/Uninstall Apple Bloatware Apps/UninstallAppleBloatwareApps.zsh b/macOS/Config/Uninstall Apple Bloatware Apps/UninstallAppleBloatwareApps.zsh index bd631d5d..83b45e6d 100755 --- a/macOS/Config/Uninstall Apple Bloatware Apps/UninstallAppleBloatwareApps.zsh +++ b/macOS/Config/Uninstall Apple Bloatware Apps/UninstallAppleBloatwareApps.zsh @@ -116,7 +116,7 @@ echo "" if [ "$abmcheck" = true ]; then echo "$(date) | Checking MDM Profile Type" profiles status -type enrollment | grep "Enrolled via DEP: Yes" - if [ ! $? == 0 ]; then + if [[ ! $? == 0 ]]; then echo "$(date) | This device is not ABM managed" exit 0; else @@ -158,4 +158,4 @@ fi # Closing script echo "$(date) | Done. Closing script..." -exit 0 \ No newline at end of file +exit 0