Skip to content

Commit f7bc769

Browse files
Run $package_dir through realpath() for consistent paths
1 parent 8ba67d6 commit f7bc769

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/ScaffoldPackageCommand.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ public function package( $args, $assoc_args ) {
7979
$package_dir = WP_CLI::get_runner()->get_packages_dir_path() . 'local/' . $assoc_args['name'];
8080
}
8181

82+
$package_dir = realpath( $package_dir );
83+
8284
if ( empty( $assoc_args['homepage'] ) ) {
8385
$assoc_args['homepage'] = 'https://github.com/' . $assoc_args['name'];
8486
}

0 commit comments

Comments
 (0)