mirror of
https://github.com/kovetskiy/mark.git
synced 2026-03-17 07:57:37 +08:00
fix: trim whitespace from stdin password
When password is read from stdin (e.g. echo password | mark ...), the trailing newline was included in the password string, causing authentication to fail. Use strings.TrimSpace to strip it. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
parent
a481424f7b
commit
a4ef890247
@ -46,7 +46,7 @@ func GetCredentials(
|
||||
)
|
||||
}
|
||||
|
||||
password = string(stdin)
|
||||
password = strings.TrimSpace(string(stdin))
|
||||
}
|
||||
|
||||
if compileOnly && targetURL == "" {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user