Fix hardcoded repository path in the scp call
This commit is contained in:
@ -121,9 +121,11 @@ remoteFileExists url = hostedSources url
|
||||
uploadCommand :: Text -> Text -> SlackBuilderT ()
|
||||
uploadCommand localPath remotePath' = do
|
||||
remoteRoot <- SlackBuilderT $ asks remotePath
|
||||
liftIO $ callProcess "scp" $ Text.unpack <$>
|
||||
[ "slackbuilds/" <> localPath
|
||||
, remoteRoot <> remotePath'
|
||||
repository' <- SlackBuilderT $ asks repository
|
||||
|
||||
liftIO $ callProcess "scp"
|
||||
[ repository' </> Text.unpack localPath
|
||||
, Text.unpack $ remoteRoot <> remotePath'
|
||||
]
|
||||
|
||||
cloneAndArchive :: Text -> Text -> FilePath -> Text -> SlackBuilderT ()
|
||||
|
Reference in New Issue
Block a user