mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-08-09 15:38:49 +08:00
Get rid of our getOpt, as it already exists as lookup
This commit is contained in:
@@ -2840,7 +2840,7 @@ checkReadWithoutR _ t@T_SimpleCommand {} | t `isUnqualifiedCommand` "read" =
|
||||
flags = getAllFlags t
|
||||
has_t0 = fromMaybe False $ do
|
||||
parsed <- getOpts flagsForRead flags
|
||||
t <- getOpt "t" parsed
|
||||
t <- lookup "t" parsed
|
||||
str <- getLiteralString t
|
||||
return $ str == "0"
|
||||
|
||||
|
Reference in New Issue
Block a user