missing check
@@ -608,7 +608,7 @@ class Shell
$this->_io->out();
- if (is_file($path) && empty($this->params['force'])) {
+ if (is_file($path) && empty($this->params['force']) && $this->interactive) {
$this->_io->out(sprintf('<warning>File `%s` exists</warning>', $path));
$key = $this->_io->askChoice('Do you want to overwrite?', ['y', 'n', 'q'], 'n');