fix: match on generation of single secret

This commit is contained in:
decentral1se 2022-03-13 10:50:35 +01:00
parent c67471e6ca
commit 6a50981120
Signed by: decentral1se
GPG Key ID: 03789458B3D0C410
1 changed files with 2 additions and 0 deletions

View File

@ -71,8 +71,10 @@ var appSecretGenerateCommand = cli.Command{
parsed := secret.ParseSecretEnvVarName(sec)
if secretName == parsed {
secretsToCreate[sec] = secretVersion
matches = true
}
}
if !matches {
logrus.Fatalf("%s doesn't exist in the env config?", secretName)
}