use setCurrentDirectory

On POSIX, this just calls changeWorkingDirectory.
This commit is contained in:
Joey Hess 2013-05-11 19:14:30 -04:00
parent 18bdff3fae
commit 1e2ddcb68a
5 changed files with 8 additions and 18 deletions

View file

@ -15,7 +15,6 @@ import Init
import Config.Files
import System.Environment
import System.Posix.Directory
def :: [Command]
def = [noRepo checkAutoStart $ dontCheck repoExists $
@ -64,5 +63,5 @@ autoStart = do
)
where
go program dir = do
changeWorkingDirectory dir
setCurrentDirectory dir
boolSystem program [Param "assistant"]