aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/src/util/process_executor.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/shirabe/src/util/process_executor.rs')
-rw-r--r--crates/shirabe/src/util/process_executor.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/shirabe/src/util/process_executor.rs b/crates/shirabe/src/util/process_executor.rs
index 6351a73..ed1958d 100644
--- a/crates/shirabe/src/util/process_executor.rs
+++ b/crates/shirabe/src/util/process_executor.rs
@@ -118,7 +118,7 @@ impl ProcessExecutor {
/// runs a process on the commandline in TTY mode
pub fn execute_tty(&mut self, command: PhpMixed, cwd: Option<&str>) -> Result<i64> {
- if Platform::is_tty() {
+ if Platform::is_tty(None) {
return self.do_execute(command, cwd, true, None);
}
@@ -448,7 +448,7 @@ impl ProcessExecutor {
1,
min(
50,
- max_jobs_env.as_string().unwrap_or("0").parse().unwrap_or(0),
+ max_jobs_env.as_deref().unwrap_or("0").parse().unwrap_or(0),
),
);
} else {