Skip to content

Commit 049cede

Browse files
authored
Merge pull request #54 from wp-cli/fix/dot-github-cloning-check
2 parents 06a8ebe + 7003ae3 commit 049cede

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.maintenance/clone-all-repositories.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242

4343
$destination = isset( $clone_destination_map[ $repository->name ] ) ? $clone_destination_map[ $repository->name ] : $repository->name;
4444

45-
if ( ! is_dir( $repository->name ) ) {
45+
if ( ! is_dir( $destination ) ) {
4646
printf( "Fetching \033[32mwp-cli/{$repository->name}\033[0m...\n" );
4747
$clone_url = getenv( 'GITHUB_ACTION' ) ? $repository->clone_url : $repository->ssh_url;
4848
system( "git clone {$clone_url} {$destination}" );

0 commit comments

Comments
 (0)