only write data file when installing as normal user
This commit is contained in:
parent
d2b48cacdb
commit
6b38227bad
1 changed files with 4 additions and 3 deletions
|
@ -46,9 +46,10 @@ writeDesktop command = do
|
|||
writeDesktopMenuFile (autostart command) $
|
||||
autoStartPath "git-annex" configdir
|
||||
|
||||
programfile <- programFile
|
||||
createDirectoryIfMissing True (parentDir programFile)
|
||||
writeFile programfile command
|
||||
when (uid /= 0) $ do
|
||||
programfile <- programFile
|
||||
createDirectoryIfMissing True (parentDir programFile)
|
||||
writeFile programfile command
|
||||
|
||||
main = getArgs >>= go
|
||||
where
|
||||
|
|
Loading…
Reference in a new issue