We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e3b2a7 commit 4f87f66Copy full SHA for 4f87f66
crates/cli/src/lib.rs
@@ -200,12 +200,10 @@ impl Install {
200
)?;
201
202
#[cfg(unix)]
203
- if !self.bypass_root_check {
204
- anyhow::ensure!(
205
- !is_root(),
206
- "Running as root is not recommended. Use --bypass-root-check to override."
207
- );
208
- }
+ anyhow::ensure!(
+ self.bypass_root_check || !is_root(),
+ "Running as root is not recommended. Use --bypass-root-check to override."
+ );
209
210
let (mut ext_dir, mut php_ini) = if let Some(install_dir) = self.install_dir {
211
(install_dir, None)
0 commit comments