mirror of
https://github.com/koalaman/shellcheck
synced 2025-07-07 21:41:34 -07:00
Merge branch 'busybox' of https://github.com/austin987/shellcheck into austin987-busybox
This commit is contained in:
commit
ea83b602d7
2 changed files with 11 additions and 4 deletions
|
@ -3237,10 +3237,11 @@ readScriptFile sourced = do
|
|||
case words sb of
|
||||
[] -> ""
|
||||
[x] -> basename x
|
||||
(first:args) ->
|
||||
if basename first == "env"
|
||||
then fromMaybe "" $ find (notElem '=') $ skipFlags args
|
||||
else basename first
|
||||
(first:args) | basename first == "env" ->
|
||||
fromMaybe "" $ find (notElem '=') $ skipFlags args
|
||||
(first:second:args) | basename first == "busybox" ->
|
||||
second
|
||||
(first:_) -> basename first
|
||||
|
||||
verifyShebang pos s = do
|
||||
case isValidShell s of
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue