Skip to content

Commit

Permalink
fix(HasSudoPassword): Update shouldApplySudoPassword condition
Browse files Browse the repository at this point in the history
- Update the condition in shouldApplySudoPassword method to include 'embed' in the PHP_SAPI check
  • Loading branch information
guanguans committed Jan 29, 2024
1 parent d008fb8 commit 4de799b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Concerns/HasSudoPassword.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,6 @@ protected function getEscapedSudoPassword(): string

protected function shouldApplySudoPassword(): bool
{
return $this->sudoPassword && OS::isUnix() && ! \in_array(\PHP_SAPI, ['cli', 'cli-server', 'phpdbg'], true);
return $this->sudoPassword && OS::isUnix() && ! \in_array(\PHP_SAPI, ['cli', 'cli-server', 'phpdbg', 'embed'], true);
}
}

0 comments on commit 4de799b

Please sign in to comment.