Hi,
I do indeed work on a Mac, but used nano on a ssh-ed terminal to actually type in the script. I saved it with the default settings (not selecting Mac or Dos format).
file indicates : “Bourne-Again shell script, ASCII text executable”.
Sure is weird.