mirror of
https://github.com/koalaman/shellcheck
synced 2025-07-08 05:51:09 -07:00
Fix botched variable usage
This commit is contained in:
parent
9e6b07dbba
commit
ef764b60ca
1 changed files with 1 additions and 1 deletions
|
@ -686,7 +686,7 @@ getModifiedVariableCommand base@(T_SimpleCommand _ _ (T_NormalWord _ (T_Literal
|
||||||
|
|
||||||
-- get the FLAGS_ variable created by a shflags DEFINE_ call
|
-- get the FLAGS_ variable created by a shflags DEFINE_ call
|
||||||
getFlagVariable (n:v:_) = do
|
getFlagVariable (n:v:_) = do
|
||||||
name <- getLiteralString v
|
name <- getLiteralString n
|
||||||
return (base, n, "FLAGS_" ++ name, DataString $ SourceExternal)
|
return (base, n, "FLAGS_" ++ name, DataString $ SourceExternal)
|
||||||
getFlagVariable _ = Nothing
|
getFlagVariable _ = Nothing
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue