This file contains hidden or 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
CheckForGroup=`id -Gn $1` | |
if [[ "$CheckForGroup" == *macstaff* ]]; then | |
curl -o --url macserver.cfsd16.org/test_profile.mobileconfig --output /Library/Management/test_profile.mobileconfig | |
sudo profiles -I -F /Library/Management/test_profile.mobileconfig | |
echo "You are a macstaff" >> /var/log/login.log | |
exit 0 | |
fi | |
This file contains hidden or 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
import Foundation | |
struct Regex: StringLiteralConvertible { | |
var pattern: String { | |
didSet { | |
updateRegex() | |
} | |
} | |
var expressionOptions: NSRegularExpressionOptions { | |
didSet { |