Change Permissions and Move file

Hi
I have a spot that files are downloaded from the internet RSS feed, and then that file is in turn loaded into a program to be actioned. It seems the last apple update broke permissions.
I am trying to use Hazel to change the permissions to the correct setting for the program to be able to use the file.
I have a file in a folder called test permissions.
the Hazel script calls a script in this folder (~/Desktop/testpriv/changePer.sh)
It's a very simple script
*************
#!/bin/sh
sudo chown -R username:staff /Users/crholder/Desktop/From\ Internet
**********
it was returning this error from the hazel logs
Shellscript exited with non-successful status code: 126
I modified the script to be executable and now it returns this
Shellscript exited with non-successful status code: 1
Any help would be appreciated.
I have a spot that files are downloaded from the internet RSS feed, and then that file is in turn loaded into a program to be actioned. It seems the last apple update broke permissions.
I am trying to use Hazel to change the permissions to the correct setting for the program to be able to use the file.
I have a file in a folder called test permissions.
the Hazel script calls a script in this folder (~/Desktop/testpriv/changePer.sh)
It's a very simple script
*************
#!/bin/sh
sudo chown -R username:staff /Users/crholder/Desktop/From\ Internet
**********
it was returning this error from the hazel logs
Shellscript exited with non-successful status code: 126
I modified the script to be executable and now it returns this
Shellscript exited with non-successful status code: 1
Any help would be appreciated.