Skip to content

Commit

Permalink
Debug build version incrementation
Browse files Browse the repository at this point in the history
  • Loading branch information
champsupertramp committed Jan 8, 2024
1 parent e4c7944 commit 4d8c97a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion build/increment-versions.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,12 @@
if( isset( $argv ) && is_array( $argv ) ) {
foreach( $argv as $index => $dir ) {
if( is_dir( $dir ) && strpos( $dir, "src/" ) > -1 ) {
$file = glob( $dir . '/um-*.php', GLOB_BRACE )[0];
$file = glob( $dir . '/um-*.php', GLOB_BRACE );
if( ! empty( $file ) ) {
$file = $file[0];
} else {
continue;
}
$name = basename( $dir );
$slug = $name;
$plugin_metadata = get_file_data( $file );
Expand Down

0 comments on commit 4d8c97a

Please sign in to comment.