Merge branch 'feat-nuke' of gitlab.haskell.org:arjun/ghcup-hs into feat-nuke

This commit is contained in:
Arjun Kathuria 2021-06-26 20:00:37 +05:30
commit 8934e0e6bd

View File

@ -1297,7 +1297,7 @@ rmGhcup = do
-- since it doesn't seem possible to delete a running exec in windows -- since it doesn't seem possible to delete a running exec in windows
-- we move it to temp dir, to be deleted at next reboot -- we move it to temp dir, to be deleted at next reboot
tempDir <- liftIO $ getTemporaryDirectory tempDir <- liftIO $ getTemporaryDirectory
tempFilepath = tempDir </> ghcupFilename let tempFilepath = tempDir </> ghcupFilename
liftIO $ hideError NoSuchThing $ Win32.moveFileEx ghcupFilepath (Just tempFilepath) 1 liftIO $ hideError NoSuchThing $ Win32.moveFileEx ghcupFilepath (Just tempFilepath) 1
#else #else
-- delete it. -- delete it.