Running a shell command when a file is added to FTP on Linux Ubuntu
[ x == y ] is not strictly-conforming POSIX sh. Use [ x = y ] instead.

Instead of using /home/MyName, you may consider using the environment variable ${HOME}.

I think you made a typo in "$ filename". Use "$filename" instead.

Good job on the commenting and indentation.