mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-04-26 13:34:45 +00:00
fixes trailing slash on DRONE_SERVER env variable
This commit is contained in:
parent
5bac61dc4b
commit
27ee06a53b
1 changed files with 1 additions and 1 deletions
|
@ -15,7 +15,7 @@ import (
|
||||||
|
|
||||||
func newClient(c *cli.Context) (client.Client, error) {
|
func newClient(c *cli.Context) (client.Client, error) {
|
||||||
var token = c.GlobalString("token")
|
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
|
// if no server url is provided we can default
|
||||||
// to the hosted Drone service.
|
// to the hosted Drone service.
|
||||||
|
|
Loading…
Reference in a new issue