Skip to content

Commit ac9f93e

Browse files
committed
Commit message cleanup and variable name fix.
1 parent 3e43bed commit ac9f93e

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

class.release.php

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -437,17 +437,19 @@ public function commit_svn_changes() {
437437
$this->error_and_exit( " error, commit failed." );
438438
}
439439

440+
echo ' done!' . PHP_EOL;
441+
440442
if( ! $this->config_settings['svn-do-not-tag'] ) {
441443
echo 'Tagging SVN...' . PHP_EOL;
442444

443445
exec( '"' . $this->config_settings['svn-path'] . 'svn" copy "' . $this->config_settings['svn-url'] . '/trunk" "' . $this->config_settings['svn-url'] . '/tags/' . $this->tag . '" -m "' . $this->config_settings['svn-tag-message'] . '"', $output, $result );
444446

445447
if( $result ) {
446-
$this->error_and_exit( " error, tag failed." );
448+
$this->error_and_exit( " error, tag failed." . PHP_EOL );
447449
}
448-
}
449450

450-
echo ' done!' . PHP_EOL;
451+
echo ' done!' . PHP_EOL;
452+
}
451453

452454
$this->clean_up();
453455
}
@@ -534,7 +536,7 @@ private function set_current_wp_version() {
534536
if( is_array( $version_info ) && array_key_exists( 'offers', $version_info ) && is_array( $version_info['offers'] ) ) {
535537
foreach( $version_info['offers'] as $offer ) {
536538
if( is_array( $offer ) ) {
537-
if( version_compare( $latest_version, $offer['current'], '<' ) ) {
539+
if( version_compare( $this->latest_wp_version, $offer['current'], '<' ) ) {
538540
$this->latest_wp_version = $offer['current'];
539541
}
540542
}

0 commit comments

Comments
 (0)