Skip to content

Commit 97bf32d

Browse files
authored
Merge pull request #206 from burrrble/master
Fixing ABM DEP check bug
2 parents a04a2f1 + 6dffcae commit 97bf32d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

macOS/Config/Uninstall Apple Bloatware Apps/UninstallAppleBloatwareApps.zsh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ echo ""
116116
if [ "$abmcheck" = true ]; then
117117
echo "$(date) | Checking MDM Profile Type"
118118
profiles status -type enrollment | grep "Enrolled via DEP: Yes"
119-
if [ ! $? == 0 ]; then
119+
if [[ ! $? == 0 ]]; then
120120
echo "$(date) | This device is not ABM managed"
121121
exit 0;
122122
else
@@ -158,4 +158,4 @@ fi
158158

159159
# Closing script
160160
echo "$(date) | Done. Closing script..."
161-
exit 0
161+
exit 0

0 commit comments

Comments
 (0)