Re: Execute plugin not running commands
Posted: Thu Jan 25, 2024 10:04 am
Looking a little closer, it also looks like you might be using windows formatting for newlines.....
If you are chmod'ing then I'd suggest running chmod -R 777 on the parent folder you are trying to write to, -R is recursive and does nothing for single files....but it looks like you may have created this script on a windows machine and transferred it over? See the line with \n near the end (2nd line)
Linux does not use \r\n like windows, and this can cause problems with bash scripts being parsed incorrectly.
You can open up a editor in terminal or something and paste it in and it may work, although I always recommend using notepad++ or vscode and making sure you use LF instead of CRLF
If you are chmod'ing then I'd suggest running chmod -R 777 on the parent folder you are trying to write to, -R is recursive and does nothing for single files....but it looks like you may have created this script on a windows machine and transferred it over? See the line with \n near the end (2nd line)
Linux does not use \r\n like windows, and this can cause problems with bash scripts being parsed incorrectly.
You can open up a editor in terminal or something and paste it in and it may work, although I always recommend using notepad++ or vscode and making sure you use LF instead of CRLF