diff --git a/drone/util.go b/drone/util.go index bdc81f0f6..e90d39b53 100644 --- a/drone/util.go +++ b/drone/util.go @@ -15,7 +15,7 @@ import ( func newClient(c *cli.Context) (client.Client, error) { var token = c.GlobalString("token") - var server = c.GlobalString("server") + var server = strings.TrimRight(c.GlobalString("server"), "/") // if no server url is provided we can default // to the hosted Drone service.