I'm trying to execute test.sh on terminal.
My test.sh is in the /Home/monty folder and I made it executable:
chmod 755 test.sh
I try to execute it using: $./test.sh I get an error:
bash: ./test.sh: /usr/bin/bash: bad interpreter: No such file or directory
I tried to do this on terminal:
$ PATH=$PATH:/Home/monty
But to no avail. How do I solve this issue?
I solved the problem by changing the end of the line from CRLF to LF since my script was edited in windows.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With