Error in Bash: line 77: syntax error: unexpected end of file
Hi,
I got this error. I really don't know why and it's driving me crazy. If remove transferFileFTP funcion from my code, I don't get this error. Check the code (I removed some lines): Code:
#!/bin/bash |
Please place in [code][/code] tags so the code is readable.
|
Hi,
In addition to grail's request: Post _all_ of the script. An error like that can be caused by, for example, a missing quote, anywhere in the script. |
Done!
|
Hi,
This is incorrect (the red part): Code:
function transferFileFTP Code:
function transferFileFTP |
Quote:
|
As an addendum to druuna's information (which is all correct), you can also places a dash before the name should you need to preserve the indentation:
Code:
function transferFileFTP Code:
if [ file != "No found" ] |
Quote:
|
Please mark as SOLVED if you have a solution.
|
All times are GMT -5. The time now is 12:57 PM. |