Bash: warning: here-document at line delimited by end-of-file (wanted `EOF’) [duplicate]

You have a space after the final EOF hence it was unable to terminate the heredoc.

p/s: Noticed this while copy-pasting your code.

Leave a Comment