I wonder if you are having the same problem with your script that I detail here.
If you are running a script from a file, and the last line of the file is not terminated with a linefeed, then that line is not run.
I wonder if you are having the same problem with your script that I detail here.
If you are running a script from a file, and the last line of the file is not terminated with a linefeed, then that line is not run.