Hopefully fix some cmd argument quoting bugs

This commit is contained in:
Yahnis Elsts 2023-05-20 14:18:10 +03:00
parent 01c1565344
commit eddade3ebb
1 changed files with 3 additions and 3 deletions

View File

@ -80,7 +80,7 @@ $newVersionInfix = versionToInfix($newVersion);
$oldVersion = $currentVersion;
//Create a new branch for the version update.
exec("git checkout -b version-bump-$newVersion");
exec("git checkout -b \"version-bump-$newVersion\"");
//Rename the Puc/vXpY directory.
rename($currentVersionDir, "Puc/$newVersionInfix");
@ -113,9 +113,9 @@ $content = file_get_contents($pluginUpdateCheckerFilePath);
$content = str_replace($oldLoaderFileName, $newLoaderFileName, $content);
file_put_contents($pluginUpdateCheckerFilePath, $content);
// Commit the changes
//Commit the changes.
exec('git add .');
exec("git commit -m 'Bump version number to $newVersion'");
exec("git commit -m \"Bump version number to $newVersion\"");
//Switch back to the original branch.
//exec('git checkout -');