Skip to content

Commit fe55bb4

Browse files
committed
Merge branch 'dl-cfg-export-v2' of https://github.com/firebase/firebase-tools into dl-cfg-export-v2
2 parents f4eef7a + 54572c6 commit fe55bb4

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/commands/functions-config-export.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,14 +79,15 @@ export const command = new Command("functions:config:export")
7979
}
8080

8181
const defaultSecretName = "RUNTIME_CONFIG";
82-
const secretName =
83-
(options.secret as string) ||
84-
(await input({
82+
let secretName = options.secret as string;
83+
if (!secretName) {
84+
secretName = await input({
8585
message: "What would you like to name the new secret for your configuration?",
8686
default: defaultSecretName,
8787
nonInteractive: options.nonInteractive,
8888
force: options.force,
89-
}));
89+
});
90+
}
9091

9192
const key = await ensureValidKey(secretName, options);
9293
await ensureSecret(projectId, key, options);

0 commit comments

Comments
 (0)