diff --git a/scripts/release.go b/scripts/release.go index f67d1077f..2aab812c6 100644 --- a/scripts/release.go +++ b/scripts/release.go @@ -117,7 +117,7 @@ func preCheckBranchMaster() { die("error running 'git': %v", err) } - if string(branch) != "master" { + if strings.TrimSpace(string(branch)) != "master" { die("wrong branch: %s", branch) } }