1
0
mirror of https://github.com/Luzifer/envrun.git synced 2024-09-19 15:42:58 +00:00

All methods do not allow trailing spaces, remove them

though this might break things when the passphrase deliberately ends or
starts with a space...

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2018-06-01 18:29:19 +02:00
parent 93644bdbf9
commit c6cdce84c2
Signed by: luzifer
GPG Key ID: DC2729FDD34BE99E

View File

@ -76,7 +76,7 @@ func main() {
if err != nil {
log.WithError(err).Fatal("Unable to read password from file")
}
cfg.Password = string(data)
cfg.Password = strings.TrimSpace(string(data))
}
}