Install Mac V2 via Bash script Getting error

Im trying to install the Mac agent with shell scripting with Intune and also testing it locally and getting a Error.
1.I chmod +x the script file
2. i ran it with sudo ./

Error msg

./ line 2:  sudo: command not found
POLICY_ID=xxxxxd9c8-xxx-xxx-xxxx-xxxxxx2fxxxx echo $POLICY_ID > /tmp/syncro-deploy-id /usr/bin/curl -L1 -o /tmp/SyncroDesktop.pkg && \ sudo /usr/sbin/installer -target / -pkg /tmp/SyncroDesktop.pkg && \ /bin/rm /tmp/SyncroDesktop.pkg

Policy ID is XXX for security purposes

1 Like

This might help: