propellor spin
This commit is contained in:
parent
014af4a5b4
commit
cdf763b8b8
|
@ -9,7 +9,8 @@ import Control.Applicative
|
||||||
standardPathEnv :: IO [(String, String)]
|
standardPathEnv :: IO [(String, String)]
|
||||||
standardPathEnv = do
|
standardPathEnv = do
|
||||||
path <- getEnvDefault "PATH" "/bin"
|
path <- getEnvDefault "PATH" "/bin"
|
||||||
addEntry "PATH" (path ++ std)
|
addEntry "PATH" (path ++ stdPATH)
|
||||||
<$> getEnvironment
|
<$> getEnvironment
|
||||||
where
|
|
||||||
std = "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
|
stdPATH :: String
|
||||||
|
stdPATH = "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
|
||||||
|
|
|
@ -94,7 +94,7 @@ cleanInstallOnce confirmation = check (not <$> doesFileExist flagfile) $
|
||||||
let dest = "/" ++ takeFileName d
|
let dest = "/" ++ takeFileName d
|
||||||
whenM (not <$> fileExist dest) $
|
whenM (not <$> fileExist dest) $
|
||||||
rename d dest
|
rename d dest
|
||||||
removeDirectory newOSDir
|
removeDirectoryRecursive newOSDir
|
||||||
return MadeChange
|
return MadeChange
|
||||||
|
|
||||||
trickydirs =
|
trickydirs =
|
||||||
|
|
Loading…
Reference in New Issue