Merge pull request #9 from Code0x58/allow-empty-secret

Allow empty string secrets
This commit is contained in:
Casey Lee 2019-01-16 23:36:53 -08:00 committed by GitHub
commit 949dc467e0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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 {