Add checking that a related versions were found
[MAILPOET-6097]
This commit is contained in:
@ -34,7 +34,16 @@ $stableVersions = filterStableVersions($allVersions);
|
||||
echo "Latest Automate Woo version: $latestVersion\n";
|
||||
echo "Previous Automate Woo version: $previousVersion\n";
|
||||
|
||||
if ($latestVersion) {
|
||||
echo "Replacing the latest version in the config file...\n";
|
||||
replaceLatestVersion($latestVersion);
|
||||
} else {
|
||||
echo "No latest version found.\n";
|
||||
}
|
||||
|
||||
if ($previousVersion) {
|
||||
echo "Replacing the previous version in the config file...\n";
|
||||
replacePreviousVersion($previousVersion);
|
||||
} else {
|
||||
echo "No previous version found.\n";
|
||||
}
|
||||
|
@ -34,7 +34,16 @@ $stableVersions = filterStableVersions($allVersions);
|
||||
echo "Latest WooCommerce Memberships version: $latestVersion\n";
|
||||
echo "Previous WooCommerce Memberships version: $previousVersion\n";
|
||||
|
||||
if ($latestVersion) {
|
||||
echo "Replacing the latest version in the config file...\n";
|
||||
replaceLatestVersion($latestVersion);
|
||||
} else {
|
||||
echo "No latest version found.\n";
|
||||
}
|
||||
|
||||
if ($previousVersion) {
|
||||
echo "Replacing the previous version in the config file...\n";
|
||||
replacePreviousVersion($previousVersion);
|
||||
} else {
|
||||
echo "No previous version found.\n";
|
||||
}
|
@ -34,7 +34,16 @@ $stableVersions = filterStableVersions($allVersions);
|
||||
echo "Latest WooCommerce Subscriptions version: $latestVersion\n";
|
||||
echo "Previous WooCommerce Subscriptions version: $previousVersion\n";
|
||||
|
||||
if ($latestVersion) {
|
||||
echo "Replacing the latest version in the config file...\n";
|
||||
replaceLatestVersion($latestVersion);
|
||||
} else {
|
||||
echo "No latest version found.\n";
|
||||
}
|
||||
|
||||
if ($previousVersion) {
|
||||
echo "Replacing the previous version in the config file...\n";
|
||||
replacePreviousVersion($previousVersion);
|
||||
} else {
|
||||
echo "No previous version found.\n";
|
||||
}
|
||||
|
Reference in New Issue
Block a user