ssh -p 60022 centos@localhost 'bash -s '< ./update.sh
If I run the following command through the terminal, all works fine and
update.sh is ran on the remote machine.
If I place the same command into a bash script,
deploy.sh for example, then execute with
from the same directory, it will not allow me to execute the script with the error:
: No such file or directory
I'm assuming this is something to do with working directories or something similar, but I can't find a fix.