mirror of
https://github.com/Luzifer/envrun.git
synced 2024-11-09 23:00:07 +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:
parent
93644bdbf9
commit
c6cdce84c2
1 changed files with 1 additions and 1 deletions
2
main.go
2
main.go
|
@ -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))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue