Minor: Quote file names passed to git

This commit is contained in:
Yahnis Elsts 2023-05-20 14:47:06 +03:00
parent fcf85abaec
commit 8e2e6a3b34
1 changed files with 3 additions and 3 deletions

View File

@ -82,8 +82,8 @@ $oldVersion = $currentVersion;
//Create a new branch for the version update.
exec("git checkout -b \"version-bump-$newVersion\"");
//Rename the Puc/vXpY directory.
rename($currentVersionDir, "Puc/$newVersionInfix");
//Rename the Puc/vXpY directory using Git.
exec("git mv \"Puc/$currentVersionDir\" \"Puc/$newVersionInfix\"");
//Define the list of directories to search
$directoriesToSearch = ['css', 'js', 'Puc'];
@ -111,7 +111,7 @@ foreach ($standaloneFiles as $standaloneFile) {
//Rename the loader file and update the version numbers.
$oldLoaderFileName = "load-$oldVersionInfix.php";
$newLoaderFileName = "load-$newVersionInfix.php";
exec("git mv $oldLoaderFileName $newLoaderFileName");
exec("git mv \"$oldLoaderFileName\" \"$newLoaderFileName\"");
updateVersionNumbers($repositoryRoot . '/' . $newLoaderFileName, $oldVersion, $newVersion);
//Replace the old loader file name with new one in files that use it.