Skip to content

Commit fc0c676

Browse files
committed
Use del
1 parent 8655f8a commit fc0c676

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Context/FeatureContext.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1273,7 +1273,11 @@ public function move_files( $src, $dest ): void {
12731273
* @param string $dir
12741274
*/
12751275
public static function remove_dir( $dir ): void {
1276-
Process::create( Utils\esc_cmd( 'rm -rf %s', $dir ) )->run_check();
1276+
if ( self::is_windows() ) {
1277+
Process::create( Utils\esc_cmd( 'del %s', $dir ) )->run_check();
1278+
} else {
1279+
Process::create( Utils\esc_cmd( 'rm -rf %s', $dir ) )->run_check();
1280+
}
12771281
}
12781282

12791283
/**

0 commit comments

Comments
 (0)