isRunning() === true) { $wasRunning = true; $this->call('tmux-ui:stop', ['--kill' => true]); } $this->output->writeln('Getting changes from Github'); $process = Process::run('git pull'); echo $process->output(); echo $process->errorOutput(); if ($wasRunning === true) { $this->call('tmux-ui:start'); } } }