Fix 'ghcup upgrade' on windows
This commit is contained in:
parent
ff32ccfb50
commit
b40cefee35
@ -1637,7 +1637,7 @@ upgradeGHCup mtarget force = do
|
|||||||
let fn = "ghcup" <> exeExt
|
let fn = "ghcup" <> exeExt
|
||||||
p <- liftE $ download settings dli tmp (Just fn)
|
p <- liftE $ download settings dli tmp (Just fn)
|
||||||
let destDir = takeDirectory destFile
|
let destDir = takeDirectory destFile
|
||||||
destFile = fromMaybe (binDir </> fn) mtarget
|
destFile = fromMaybe (binDir </> (fn <> exeExt)) mtarget
|
||||||
lift $ $(logDebug) [i|mkdir -p #{destDir}|]
|
lift $ $(logDebug) [i|mkdir -p #{destDir}|]
|
||||||
liftIO $ createDirRecursive' destDir
|
liftIO $ createDirRecursive' destDir
|
||||||
lift $ $(logDebug) [i|rm -f #{destFile}|]
|
lift $ $(logDebug) [i|rm -f #{destFile}|]
|
||||||
|
Loading…
Reference in New Issue
Block a user