xxxxxxxxxx
if (condition) {
// Code goes here
console.log("Inside the code block");
} // Missing closing brace causes "syntax error, unexpected end of file"
xxxxxxxxxx
I think file.sh is with CRLF line terminators.
run
dos2unix file.sh
in my case
error in php file
at the end of file
when i forget to "
xxxxxxxxxx
$text = "Hello World!;
// instead of
$text = "Hello World!";