Created
July 7, 2022 15:47
-
-
Save madflojo/55ea3cebe4aa10a52ef02fb846f57c59 to your computer and use it in GitHub Desktop.
Article - Managing Shell Scripts - Shellcheck output
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ 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