Skip to content

Commit a22e56b

Browse files
committed
re-add chmod
1 parent 3d98b62 commit a22e56b

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/Context/FeatureContext.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1194,6 +1194,10 @@ public function download_phar( $version = 'same' ): void {
11941194
if ( 200 !== $response->status_code ) {
11951195
throw new RuntimeException( "Could not download WP-CLI PHAR (HTTP code {$response->status_code})" );
11961196
}
1197+
1198+
if ( ! Utils\is_windows() ) {
1199+
chmod( $this->variables['PHAR_PATH'], 0755 );
1200+
}
11971201
}
11981202

11991203
/**

0 commit comments

Comments
 (0)