#! /bin/bash

#Change the directory to Launch Daemon folder and alter permissions to be able to edit the .plist 

echo "Please enter your password to approve this command and PRESS ENTER"
echo "As you type, you will not see the password being entered."

cd /Library/LaunchDaemons
sudo chown root com.spitfireaudio.LibraryManagerHelper.plist
sudo chmod 666  com.spitfireaudio.LibraryManagerHelper.plist

#Remove the .plist file:

cd /Library/LaunchDaemons
sudo rm com.spitfireaudio.LibraryManagerHelper.plist

echo "This window can now be closed"