mirror of
https://github.com/stackbuilders/hapistrano.git
synced 2024-11-27 12:13:41 +03:00
Simplify a function
This commit is contained in:
parent
5b8f231a95
commit
2854b111b2
@ -300,10 +300,10 @@ removeCurrentSymlink = do
|
||||
remoteIsLinux :: RC Bool
|
||||
remoteIsLinux = do
|
||||
st <- get
|
||||
res <- liftIO $ runEitherT $ evalStateT (remoteCommand "uname") st
|
||||
res <- remoteCommand "uname"
|
||||
|
||||
case res of
|
||||
Right (Just output) -> lift $ right $ "Linux" `isInfixOf` output
|
||||
Just output -> lift $ right $ "Linux" `isInfixOf` output
|
||||
_ -> lift $ left (1, Just "Unable to determine remote host type")
|
||||
|
||||
restartServerCommand :: RC (Maybe String)
|
||||
|
Loading…
Reference in New Issue
Block a user