Shell

Shell

Made by DeepSource

Whitespace detected after the here-doc end token SH-1118

Bug risk
Major

The end token of your here document has trailing whitespace. This is invisible to the naked eye, but shells do not accept it.

It is recommended to remove the trailing whitespace.

Problematic code:

"▭" below indicates an otherwise invisible space:

cat << "eof"
Hello
eof▭

Preferred code:

cat << "eof"
Hello
eof