#!
, not just
#
, for the shebang.# /bin/bash
echo "Hello World"
#! /bin/bash
echo "Hello World"
You appear to be specifying a shebang, but missing the bang (i.e.
!
). The shebang should always be on the form
#!/path/shell
.
None.
ShellCheck is a static analysis tool for shell scripts. This page is part of its documentation.