From a352ff2b48365d3c1a5b4ae3774219deffc1cd0e Mon Sep 17 00:00:00 2001 From: koalaman Date: Sat, 7 Mar 2015 19:20:18 -0800 Subject: [PATCH] Updated SC2154 (markdown) --- SC2154.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SC2154.md b/SC2154.md index 9de4b3e..129138d 100644 --- a/SC2154.md +++ b/SC2154.md @@ -22,4 +22,4 @@ Note: This message only triggers for variables with lowercase characters in thei ShellCheck does not attempt to figure out runtime or dynamic assignments like with `source mycommonvars.sh` or `eval var=value`. -If you know for a fact that the variable is set, you can use `${var:?}` to fail if the variable is unset (or empty). You can also disable the message with a [[directive]]. \ No newline at end of file +If you know for a fact that the variable is set, you can use `${var:?}` to fail if the variable is unset (or empty), or explicitly initialize/declare it with `var=""` or `declare var`. You can also disable the message with a [[directive]]. \ No newline at end of file