make assistant not write wrappers when GIT_ANNEX_PACKAGE_INSTALL is set
This way, the git-annex-standalone.deb, which does set GIT_ANNEX_APP_BASE, will not have the assistant install wrappers that it does not need to, since git-annex is installed system wide from a package.
This commit is contained in:
parent
c284fbed68
commit
30f0052ae0
1 changed files with 4 additions and 1 deletions
|
@ -43,7 +43,10 @@ standaloneAppBase = getEnv "GIT_ANNEX_APP_BASE"
|
|||
- packaged apps, since it has to go into the user's home directory.
|
||||
-}
|
||||
ensureInstalled :: IO ()
|
||||
ensureInstalled = go =<< standaloneAppBase
|
||||
ensureInstalled = ifM (isJust <$> getEnv "GIT_ANNEX_PACKAGE_INSTALL")
|
||||
( go Nothing
|
||||
, go =<< standaloneAppBase
|
||||
)
|
||||
where
|
||||
go Nothing = installFileManagerHooks "git-annex"
|
||||
go (Just base) = do
|
||||
|
|
Loading…
Reference in a new issue