Skip to content

Commit

Permalink
Don't ignore read-only files with a supported file extension
Browse files Browse the repository at this point in the history
  • Loading branch information
ad-si committed Jun 1, 2024
1 parent 0b0bf36 commit 24dac22
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tasklite-core/source/Cli.hs
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ import System.Directory (
getXdgDirectory,
listDirectory,
)
import System.FilePath ((</>))
import System.FilePath (hasExtension, (</>))
import System.Process (readProcess)
import Time.System (timeCurrentP)

Expand Down Expand Up @@ -1332,7 +1332,7 @@ printOutput appName argsMb config = do

hookFilesPermContent <-
hookFilesPerm
& filter (\(_, perm) -> executable perm)
& filter (\(filePath, perm) -> hasExtension filePath || executable perm)
& P.mapM
( \(filePath, perm) -> do
fileContent <- readFile filePath
Expand Down

0 comments on commit 24dac22

Please sign in to comment.