1
0
Fork 0
mirror of https://github.com/Luzifer/envrun.git synced 2024-12-20 18:31:17 +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 { if err != nil {
log.WithError(err).Fatal("Unable to read password from file") log.WithError(err).Fatal("Unable to read password from file")
} }
cfg.Password = string(data) cfg.Password = strings.TrimSpace(string(data))
} }
} }