Skip to content

Commit c88c4b0

Browse files
Merge pull request #2 from Mte90/patch-1
Improve xargs cross-compatibility
2 parents 6b0c578 + 892bc0e commit c88c4b0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.maintenance/clone-all-repositories.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@
2626
printf( "Fetching \033[32mwp-cli/{$repository->name}\033[0m...\n" );
2727
system( "git clone {$repository->clone_url}" );
2828
}
29-
29+
3030
$update_folders[] = $repository->name;
3131
}
3232

33-
$updates = implode( ' ', $update_folders );
34-
system( "echo $updates | xargs -n1 -P8 -I% php .maintenance/refresh-repository.php %" );
33+
$updates = implode( '\n', $update_folders );
34+
system( "echo '$updates' | xargs -n1 -P8 -I% php .maintenance/refresh-repository.php %" );

0 commit comments

Comments
 (0)