diff options
| author | Joey Hess <id@joeyh.name> | 2014-12-05 16:23:07 -0400 |
|---|---|---|
| committer | Joey Hess <id@joeyh.name> | 2014-12-05 16:23:07 -0400 |
| commit | dbc76b1e5225a28b84efa14659ff1c0c1d5fc463 (patch) | |
| tree | 1a3f95f33ded5798987ab02cd851d8ec7ea24cfa /src/Propellor/Property/Chroot/Util.hs | |
| parent | a380ea8390984afa28c2956fc9a6e011a1b93763 (diff) | |
| parent | 2559b2348207ed9e914999e92fe9d26da0e1f5ad (diff) | |
Merge branch 'joeyconfig'
Diffstat (limited to 'src/Propellor/Property/Chroot/Util.hs')
| -rw-r--r-- | src/Propellor/Property/Chroot/Util.hs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/Propellor/Property/Chroot/Util.hs b/src/Propellor/Property/Chroot/Util.hs index feb71d01..382fbab7 100644 --- a/src/Propellor/Property/Chroot/Util.hs +++ b/src/Propellor/Property/Chroot/Util.hs @@ -9,7 +9,8 @@ import Control.Applicative standardPathEnv :: IO [(String, String)] standardPathEnv = do path <- getEnvDefault "PATH" "/bin" - addEntry "PATH" (path ++ std) + addEntry "PATH" (path ++ stdPATH) <$> 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" |
