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 ./installrmmtest.sh
Error msg
Password:
./installrmmtest.sh: line 2: sudo: command not found
#!/bin/bash
POLICY_ID=xxxxxd9c8-xxx-xxx-xxxx-xxxxxx2fxxxx echo $POLICY_ID > /tmp/syncro-deploy-id /usr/bin/curl -L1 https://production.kabutoservices.com/desktop/macos/setup -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