I have a script that creates a launchD when run with various parameters. the file IS getting created in /Library/LaunchDeamons, but when I go to view it the data appears to be encrypted so I can't really tell if it's working properly. None of the other launchDs appear to be encrypted. Any thoughts on what I'm doing wrong?
# Construct Launchd plist in-place
defaults write "$LAUNCHD_PLIST" Label -string "$LAUNCHD_LABEL"
defaults write "$LAUNCHD_PLIST" RunAtLoad -bool YES
defaults write "$LAUNCHD_PLIST" ProgramArguments -array /usr/local/bin/jamf policy -trigger adminremove
defaults write "$LAUNCHD_PLIST" StartInterval -integer $ADMIN_DURATION
defaults write "$LAUNCHD_PLIST" LaunchOnlyOnce -bool YES
chmod 644 "$LAUNCHD_PLIST"
chown root:wheel "$LAUNCHD_PLIST"