Merge branch 'busybox' of https://github.com/austin987/shellcheck into austin987-busybox

This commit is contained in:
Vidar Holen 2021-03-11 21:44:17 -08:00
commit ea83b602d7
2 changed files with 11 additions and 4 deletions

View file

@ -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