copy-to-port #724
This commit is contained in:
parent
e9311d0e1f
commit
f43c7fd3e4
@ -62,7 +62,10 @@ keter cabal noBuild = do
|
|||||||
L.writeFile fp $ compress $ Tar.write archive
|
L.writeFile fp $ compress $ Tar.write archive
|
||||||
|
|
||||||
case Map.lookup "copy-to" value of
|
case Map.lookup "copy-to" value of
|
||||||
Just (String s) -> run "scp" [fp, T.unpack s]
|
Just (String s) ->
|
||||||
|
case parseMaybe (.: "copy-to-port") value of
|
||||||
|
Just i -> run "scp" ["-P" ++ show (i :: Int), fp, T.unpack s]
|
||||||
|
Nothing -> run "scp" [fp, T.unpack s]
|
||||||
_ -> return ()
|
_ -> return ()
|
||||||
|
|
||||||
try' :: IO a -> IO (Either SomeException a)
|
try' :: IO a -> IO (Either SomeException a)
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
name: yesod-bin
|
name: yesod-bin
|
||||||
version: 1.2.8.2
|
version: 1.2.9
|
||||||
license: MIT
|
license: MIT
|
||||||
license-file: LICENSE
|
license-file: LICENSE
|
||||||
author: Michael Snoyman <michael@snoyman.com>
|
author: Michael Snoyman <michael@snoyman.com>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user