Allow empty string secrets

This commit is contained in:
Oliver Bristow 2019-01-17 07:18:21 +00:00
parent c573d9d48a
commit dcd235bcda
No known key found for this signature in database
GPG key ID: 6B75B2FEA72B664A

View file

@ -333,7 +333,7 @@ func (action *actionDef) applyEnvironmentSecrets(env *[]string) {
secretCache = make(map[string]string)
}
if secretCache[secret] == "" {
if _, ok := secretCache[secret]; !ok {
fmt.Printf("Provide value for '%s': ", secret)
val, err := gopass.GetPasswdMasked()
if err != nil {