fixes trailing slash on DRONE_SERVER env variable

This commit is contained in:
Gilles De Mey 2016-11-12 20:13:52 +01:00
parent 5bac61dc4b
commit 27ee06a53b

View file

@ -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.