summaryrefslogtreecommitdiffstats
path: root/test5.hs
diff options
context:
space:
mode:
authortv <tv@shackspace.de>2014-12-28 22:16:47 +0100
committertv <tv@shackspace.de>2014-12-28 22:16:47 +0100
commitb1aa17616f56517fa83607296c25ee6c333968c1 (patch)
treeb9c2ed97dc1a7446b3009f5597cd7ca5183fea2f /test5.hs
parent1e2180c07b45a31de87439160fbe5dde64a24dab (diff)
purge a bit of legacy & cruft
There's still both around, though..^_^
Diffstat (limited to 'test5.hs')
-rw-r--r--test5.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/test5.hs b/test5.hs
index ec90299..5a682bd 100644
--- a/test5.hs
+++ b/test5.hs
@@ -83,8 +83,8 @@ cleanup = do
startup :: IO ()
startup = do
- setEnv "HOME" =<< getEnv "OLDHOME"
-
+ -- load-env hack
+ maybe (return ()) (setEnv "HOME") =<< lookupEnv "OLDHOME"
hSetEcho stdin False
hSetBuffering stdin NoBuffering