Skip to content

Instantly share code, notes, and snippets.

@madflojo
Created July 7, 2022 15:47
Show Gist options
  • Save madflojo/55ea3cebe4aa10a52ef02fb846f57c59 to your computer and use it in GitHub Desktop.
Save madflojo/55ea3cebe4aa10a52ef02fb846f57c59 to your computer and use it in GitHub Desktop.
Article - Managing Shell Scripts - Shellcheck output
$ shellcheck whoami.sh
In whoami.sh line 6:
if [ $WHOAMI == "root" ]; then
^-----^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
if [ "$WHOAMI" == "root" ]; then
For more information:
https://www.shellcheck.net/wiki/SC2086 -- Double quote to prevent globbing ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment