Skip to content

Commit

Permalink
releaser.php - Fix warning about extra spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
totten committed Jun 25, 2024
1 parent 5c16f1d commit 4b611f8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scripts/releaser.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ function autodir(string $path): string {
if ($vars = $io->askHidden('(Optional) Paste a batch list of secrets (KEY1=VALUE1 KEY2=VALUE2...)')) {
assertThat(!preg_match(';[\'\\"];', $vars), "Sorry, not clever enough to handle meta-characters.");
foreach (explode(' ', $vars) as $keyValue) {
if ($keyValue === '') continue;
[$key, $value] = explode('=', $keyValue, 2);
putenv($keyValue);
$_ENV[$key] = $_SERVER[$key] = $value;
Expand Down

0 comments on commit 4b611f8

Please sign in to comment.