cli: fix hiding of redundant source scripts when a .com/.exe exists

Related to #1225.
This commit is contained in:
Simon Michael 2020-04-15 11:33:38 -07:00
parent 1428291dd6
commit a016a43785

View File

@ -649,8 +649,8 @@ hledgerAddons = do
stripPrognamePrefix = drop (length progname + 1)
dropRedundantSourceVersion [f,g]
| takeExtension f `elem` compiledExts = [f]
| takeExtension g `elem` compiledExts = [g]
| map toLower (takeExtension f) `elem` compiledExts = [f]
| map toLower (takeExtension g) `elem` compiledExts = [g]
dropRedundantSourceVersion fs = fs
compiledExts = ["",".com",".exe"]