Skip to content

Commit 0129bec

Browse files
committed
add warning if destroy left any files behind
1 parent 13f3540 commit 0129bec

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/ValetCommand.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,8 @@ public function destroy($args, $assoc_args)
220220
static::debug('Removing all files...');
221221
if ($this->rm_rf($project_abspath)) {
222222
WP_CLI::success("{$this->props->site_name} was destroyed.");
223+
} else {
224+
WP_CLI::warning('Some files were unable to be deleted.');
223225
}
224226
}
225227

0 commit comments

Comments
 (0)