#!/bin/bash # Check if the 'jamf' command-line tool is available if ! command -v jamf &> /dev/null; then echo "Error: 'jamf' command not found. Please make sure Jamf Pro is installed." exit 1 fi # Trigger the enrollment with Jamf Pro jamf enroll -invitation your_enrollment_URL # Check the result if [ $? -eq 0 ]; then echo "Enrollment successful." else echo "Enrollment failed. Please check your enrollment URL and server configuration." exit 1 fi