diff options
author | Joey Hess <joeyh@joeyh.name> | 2015-01-09 13:11:56 -0400 |
---|---|---|
committer | Joey Hess <joeyh@joeyh.name> | 2015-01-09 13:11:56 -0400 |
commit | 3bab5dfb1dbaee3a4048b9aff79c798ee18064b6 (patch) | |
tree | 1414b64a8cfc4429b7b0dc2a4be318fe95e0be94 /Config | |
parent | 2fff78512d80c30d4ddb47ac64d99272092f2616 (diff) |
revert parentDir change
Reverts 965e106f242b34a8269c72e136f60fc0c36ae460
Unfortunately, this caused breakage on Windows, and possibly elsewhere,
because parentDir and takeDirectory do not behave the same when there is a
trailing directory separator.
Diffstat (limited to 'Config')
-rw-r--r-- | Config/Files.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Config/Files.hs b/Config/Files.hs index edea83eeb6..8d5c1fd124 100644 --- a/Config/Files.hs +++ b/Config/Files.hs @@ -33,7 +33,7 @@ modifyAutoStartFile func = do let dirs' = nubBy equalFilePath $ func dirs when (dirs' /= dirs) $ do f <- autoStartFile - createDirectoryIfMissing True (takeDirectory f) + createDirectoryIfMissing True (parentDir f) viaTmp writeFile f $ unlines dirs' {- Adds a directory to the autostart file. If the directory is already |