Skip to content

Instantly share code, notes, and snippets.

@opragel
Last active November 20, 2016 04:53
Show Gist options
  • Save opragel/1e95017d11b6491f53b1 to your computer and use it in GitHub Desktop.
Save opragel/1e95017d11b6491f53b1 to your computer and use it in GitHub Desktop.
ea_check_for_config_profile.sh
#!/bin/bash
CONFIGURATION_PROFILE_UUID="43EA456A-C3F4-42F8-B752-E285385D0838"
computerConfigProfiles=$(profiles -C | awk -F: '/attribute: profileUUID/{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