Trim \n from password file.

This commit is contained in:
Roman Vynar
2018-08-14 14:40:32 +03:00
parent 7525e87c1a
commit 0f6bf65015
2 changed files with 5 additions and 1 deletions

View File

@@ -96,7 +96,7 @@ func main() {
if err != nil {
panic(err)
}
a.config.Password = string(passwordBytes[:])
a.config.Password = strings.TrimSuffix(string(passwordBytes[:]), "\n")
}
// Init registry API client.