mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-30 04:01:58 +00:00
agent: adds autoCheckUpdates to v0
This commit is contained in:
committed by
Aiden McClelland
parent
7ed220dc51
commit
18f18e3b95
@@ -80,6 +80,11 @@ readSystemPath path = do
|
||||
$ (Just <$> readFile (toS loadPath))
|
||||
`catch` (\(e :: IOException) -> if isDoesNotExistError e then pure Nothing else throwIO e)
|
||||
|
||||
existsSystemPath :: (HasFilesystemBase sig m, MonadIO m) => SystemPath -> m Bool
|
||||
existsSystemPath path = do
|
||||
checkPath <- getAbsoluteLocationFor path
|
||||
liftIO . doesPathExist $ toS checkPath
|
||||
|
||||
-- like the above, but throws IO error if file not found
|
||||
readSystemPath' :: (HasFilesystemBase sig m, MonadIO m) => SystemPath -> m Text
|
||||
readSystemPath' path = do
|
||||
|
||||
Reference in New Issue
Block a user