Skip to content

Commit

Permalink
fix: Fix regression and prevent adding script to needs when alrea…
Browse files Browse the repository at this point in the history
…dy part of it
  • Loading branch information
stmh committed Oct 6, 2022
1 parent 327a888 commit 9d5c98d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Configuration/ConfigurationService.php
Original file line number Diff line number Diff line change
Expand Up @@ -712,7 +712,7 @@ private function validateHostConfig($config_name, Node $data)
$data->get('needs')->ensureArray();

if (!$this->getSetting('disableScripts', false)) {
if (!$data->get('needs')->has('script')) {
if (!in_array('script', $data->get('needs')->asArray())) {
$data->get('needs')->push('script');
}
}
Expand Down

0 comments on commit 9d5c98d

Please sign in to comment.