mirror of
https://github.com/koalaman/shellcheck
synced 2025-07-31 03:50:49 -07:00
Added --version flag
This commit is contained in:
parent
c5141b77bf
commit
4e5d32b05a
4 changed files with 29 additions and 13 deletions
|
@ -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
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
module ShellCheck.Data where
|
||||
|
||||
shellcheckVersion = "0.3.0" -- Must also be updated in ShellCheck.cabal
|
||||
|
||||
internalVariables = [
|
||||
-- Generic
|
||||
"", "_", "rest", "REST",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue