I get an issue using a shell script on Ubuntu.
My script :
#!/bin/bash
/usr/local/bin/node ./index.js
exec bash
I have set it as executable with:
sudo chmod +x ./index.sh
Then run it with:
sudo ./index.sh
But get:
sudo: unable to execute ./index.sh: No such file or directory
However, the file is there:
$ ls -la
-rwxr-xr-x 1 root root 54 oct. 4 10:05 index.sh