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