avoid empty env vars when setting up clean environment
This commit is contained in:
parent
72b592cdae
commit
5c834daf59
1 changed files with 3 additions and 2 deletions
|
@ -96,6 +96,7 @@ cleanEnvironment = clean <$> getEnvironment
|
||||||
lookup "GIT_ANNEX_STANDLONE_ENV" env
|
lookup "GIT_ANNEX_STANDLONE_ENV" env
|
||||||
restoreorig oldenv p@(k, _v)
|
restoreorig oldenv p@(k, _v)
|
||||||
| k `elem` vars = case lookup ("ORIG_" ++ k) oldenv of
|
| k `elem` vars = case lookup ("ORIG_" ++ k) oldenv of
|
||||||
Nothing -> Nothing
|
(Just v')
|
||||||
(Just v') -> Just (k, v')
|
| not (null v') -> Just (k, v')
|
||||||
|
_ -> Nothing
|
||||||
| otherwise = Just p
|
| otherwise = Just p
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue