mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-09-22 19:59:19 +08:00
Fix botched variable usage
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user