-
Notifications
You must be signed in to change notification settings - Fork 1.8k
SC2148
koalaman edited this page Aug 12, 2014
·
15 revisions
echo "Hello World"
#!/bin/sh
echo "Hello World"
ShellCheck noticed that your file does not start with a shebang. Shebangs are good for a number of reasons:
- They allow scripts to be executed outside of interactive prompts.
- They ensure the script is executed by the correct shell.
- Editors and utilities (including shellcheck) use it to determine the file type.
For checking snippets, use shellcheck -e 2148
. This is the default for shellcheck.net.