mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-08-28 00:07:03 +08:00
Merge branch 'busybox' of https://github.com/austin987/shellcheck into austin987-busybox
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user