Skip to content

Commit 9738c94

Browse files
author
Callin Mullaney
committed
fix(ci): prefer env theme in favicon smoke
1 parent bd11e1b commit 9738c94

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.github/scripts/favicon-smoke.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,10 @@
1313
use Drupal\emulsify\Hook\FaviconHooks;
1414

1515
$argv = $_SERVER['argv'] ?? [];
16-
$theme_name = (string) ($argv[1] ?? getenv('EMULSIFY_FAVICON_THEME') ?: 'emulsify');
16+
$theme_name = getenv('EMULSIFY_FAVICON_THEME');
17+
$theme_name = is_string($theme_name) && $theme_name !== ''
18+
? $theme_name
19+
: (string) ($argv[1] ?? 'emulsify');
1720
$site_name = (string) \Drupal::config('system.site')->get('name');
1821
$svg = <<<'SVG'
1922
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">

0 commit comments

Comments
 (0)