Forked from opragel/ea_check_for_config_profile.sh
Last active
November 20, 2016 04:54
-
-
Save matthewbodaly/be92b897b13a5e3d7ba6a5465f5d388f to your computer and use it in GitHub Desktop.
ea_check_for_config_profile.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
CONFIGURATION_PROFILE_UUID="43EA456A-C3F4-42F8-B752-E285385D0838" | |
computerConfigProfiles=$(profiles -Lv | grep "name: $4" -4 | awk -F": " '/attribute: profileIdentifier/{print $NF}') | |
if [[ "$computerConfigProfiles" == *$CONFIGURATION_PROFILE_UUID* ]]; then | |
configCheckResult='T' | |
else | |
configCheckResult='F' | |
fi | |
printf "<result>%s</result>" "$configCheckResult" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment