summaryrefslogtreecommitdiff
path: root/Utility/Path.hs
diff options
context:
space:
mode:
Diffstat (limited to 'Utility/Path.hs')
-rw-r--r--Utility/Path.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Utility/Path.hs b/Utility/Path.hs
index fe474ee82..ce54fb369 100644
--- a/Utility/Path.hs
+++ b/Utility/Path.hs
@@ -19,7 +19,7 @@ import Control.Applicative
parentDir :: FilePath -> FilePath
parentDir dir =
if not $ null dirs
- then slash ++ join s (take (length dirs - 1) dirs)
+ then slash ++ join s (init dirs)
else ""
where
dirs = filter (not . null) $ split s dir