Added --version flag

This commit is contained in:
Vidar Holen 2014-02-03 20:06:59 -08:00
parent c5141b77bf
commit 4e5d32b05a
4 changed files with 29 additions and 13 deletions

View file

@ -105,8 +105,11 @@ determineShell (T_Script _ shebang _) = fromMaybe Bash . shellForExecutable $ sh
shellForExecutable "sh" = return Sh
shellForExecutable "ash" = return Sh
shellForExecutable "dash" = return Sh
shellForExecutable "ksh" = return Ksh
shellForExecutable "ksh88" = return Ksh
shellForExecutable "ksh93" = return Ksh
shellForExecutable "zsh" = return Zsh
shellForExecutable "bash" = return Bash
shellForExecutable _ = Nothing

View file

@ -1,5 +1,7 @@
module ShellCheck.Data where
shellcheckVersion = "0.3.0" -- Must also be updated in ShellCheck.cabal
internalVariables = [
-- Generic
"", "_", "rest", "REST",