Skip to content
This repository has been archived by the owner on May 30, 2024. It is now read-only.

Commit

Permalink
Merge pull request #735 from Shopify/bitwise-aiden/shadow-env-return
Browse files Browse the repository at this point in the history
Add early return when shadowenv returns an empty string
  • Loading branch information
vinistock authored Aug 8, 2023
2 parents 9c52690 + fe4aff1 commit 7229a9e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/ruby.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 };

Expand Down

0 comments on commit 7229a9e

Please sign in to comment.