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 "Latest Automate Woo version: $latestVersion\n";
|
||||||
echo "Previous Automate Woo version: $previousVersion\n";
|
echo "Previous Automate Woo version: $previousVersion\n";
|
||||||
|
|
||||||
echo "Replacing the latest version in the config file...\n";
|
if ($latestVersion) {
|
||||||
replaceLatestVersion($latestVersion);
|
echo "Replacing the latest version in the config file...\n";
|
||||||
echo "Replacing the previous version in the config file...\n";
|
replaceLatestVersion($latestVersion);
|
||||||
replacePreviousVersion($previousVersion);
|
} 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 "Latest WooCommerce Memberships version: $latestVersion\n";
|
||||||
echo "Previous WooCommerce Memberships version: $previousVersion\n";
|
echo "Previous WooCommerce Memberships version: $previousVersion\n";
|
||||||
|
|
||||||
echo "Replacing the latest version in the config file...\n";
|
if ($latestVersion) {
|
||||||
replaceLatestVersion($latestVersion);
|
echo "Replacing the latest version in the config file...\n";
|
||||||
echo "Replacing the previous version in the config file...\n";
|
replaceLatestVersion($latestVersion);
|
||||||
replacePreviousVersion($previousVersion);
|
} 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 "Latest WooCommerce Subscriptions version: $latestVersion\n";
|
||||||
echo "Previous WooCommerce Subscriptions version: $previousVersion\n";
|
echo "Previous WooCommerce Subscriptions version: $previousVersion\n";
|
||||||
|
|
||||||
echo "Replacing the latest version in the config file...\n";
|
if ($latestVersion) {
|
||||||
replaceLatestVersion($latestVersion);
|
echo "Replacing the latest version in the config file...\n";
|
||||||
echo "Replacing the previous version in the config file...\n";
|
replaceLatestVersion($latestVersion);
|
||||||
replacePreviousVersion($previousVersion);
|
} 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