We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 074595b commit 9ef8ff1Copy full SHA for 9ef8ff1
src/secrets/CommandEnv.ts
@@ -180,6 +180,12 @@ class CommandEnv extends CommandPolykey {
180
let preserveNewline = false;
181
if (options.preserveNewline) {
182
for (const pair of options.preserveNewline) {
183
+ // All the secrets from a vault are being exported together
184
+ if (pair[1] == null && pair[0] === nameOrId) {
185
+ preserveNewline = true;
186
+ break;
187
+ }
188
+ // Individual files are being exported from a vault
189
if (pair[1] === secretName) {
190
preserveNewline = true;
191
break;
0 commit comments