Allow directive/-s to override shebang blacklist (fixes #974)

This commit is contained in:
Vidar Holen 2018-07-22 12:43:51 -07:00
parent b8ee7436e5
commit 5005dc0fa1
4 changed files with 54 additions and 22 deletions

View file

@ -52,11 +52,20 @@ emptyCheckSpec = CheckSpec {
csShellTypeOverride = Nothing
}
newParseSpec :: ParseSpec
newParseSpec = ParseSpec {
psFilename = "",
psScript = "",
psCheckSourced = False,
psShellTypeOverride = Nothing
}
-- Parser input and output
data ParseSpec = ParseSpec {
psFilename :: String,
psScript :: String,
psCheckSourced :: Bool
psCheckSourced :: Bool,
psShellTypeOverride :: Maybe Shell
} deriving (Show, Eq)
data ParseResult = ParseResult {