mirror of
https://github.com/koalaman/shellcheck
synced 2025-07-10 23:32:57 -07:00
Expand root paths into source paths
This commit is contained in:
parent
af46758ff1
commit
c6c12f52bd
6 changed files with 70 additions and 30 deletions
|
@ -2088,7 +2088,8 @@ readSource t@(T_Redirecting _ _ (T_SimpleCommand cmdId _ (cmd:file':rest'))) = d
|
|||
if filename == "/dev/null" -- always allow /dev/null
|
||||
then return (Right "")
|
||||
else do
|
||||
filename' <- system $ siFindSource sys filename
|
||||
currentScript <- Mr.asks currentFilename
|
||||
filename' <- system $ siFindSource sys currentScript filename
|
||||
system $ siReadFile sys filename'
|
||||
case input of
|
||||
Left err -> do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue