diff --git a/src/ruby.ts b/src/ruby.ts index 1d141f49..c2a5354f 100644 --- a/src/ruby.ts +++ b/src/ruby.ts @@ -122,6 +122,9 @@ export class Ruby { cwd: this.workingFolder, }); + if (result.stdout.trim() === "") { + result.stdout = "{ }"; + } // eslint-disable-next-line no-process-env const env = { ...process.env, ...JSON.parse(result.stdout).exported };