Fuse maps
This commit is contained in:
parent
953d9bc56d
commit
2cfd1f2714
|
@ -507,7 +507,7 @@ ioInterface options files = do
|
||||||
where
|
where
|
||||||
find filename deflt = do
|
find filename deflt = do
|
||||||
sources <- findM ((allowable inputs) `andM` doesFileExist) $
|
sources <- findM ((allowable inputs) `andM` doesFileExist) $
|
||||||
(adjustPath filename):(map (</> filename) $ map adjustPath $ sourcePathFlag ++ sourcePathAnnotation)
|
(adjustPath filename):(map ((</> filename) . adjustPath) $ sourcePathFlag ++ sourcePathAnnotation)
|
||||||
case sources of
|
case sources of
|
||||||
Nothing -> return deflt
|
Nothing -> return deflt
|
||||||
Just first -> return first
|
Just first -> return first
|
||||||
|
|
|
@ -951,7 +951,7 @@ checkCatastrophicRm = CommandCheck (Basename "rm") $ \t ->
|
||||||
when (isRecursive t) $
|
when (isRecursive t) $
|
||||||
mapM_ (mapM_ checkWord . braceExpand) $ arguments t
|
mapM_ (mapM_ checkWord . braceExpand) $ arguments t
|
||||||
where
|
where
|
||||||
isRecursive = any (`elem` ["r", "R", "recursive"]) . map snd . getAllFlags
|
isRecursive = any ((`elem` ["r", "R", "recursive"]) . snd) . getAllFlags
|
||||||
|
|
||||||
checkWord token =
|
checkWord token =
|
||||||
case getLiteralString token of
|
case getLiteralString token of
|
||||||
|
|
Loading…
Reference in New Issue