summaryrefslogtreecommitdiff
path: root/src/Propellor/Property/Chroot/Util.hs
diff options
context:
space:
mode:
authorJoey Hess2014-12-04 17:11:15 -0400
committerJoey Hess2014-12-04 17:11:15 -0400
commitf1fd75c9ecee5f398a25488c73a541d4135887da (patch)
tree9801546d9d8960e7019c9cdc05624189bb5f2353 /src/Propellor/Property/Chroot/Util.hs
parentf78c2f16d1c93ee6fe2620916b7584d91d116723 (diff)
more work on OS takeover
Diffstat (limited to 'src/Propellor/Property/Chroot/Util.hs')
-rw-r--r--src/Propellor/Property/Chroot/Util.hs7
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"