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