Minor: Quote file names passed to git
This commit is contained in:
parent
fcf85abaec
commit
8e2e6a3b34
|
|
@ -82,8 +82,8 @@ $oldVersion = $currentVersion;
|
||||||
//Create a new branch for the version update.
|
//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 the Puc/vXpY directory using Git.
|
||||||
rename($currentVersionDir, "Puc/$newVersionInfix");
|
exec("git mv \"Puc/$currentVersionDir\" \"Puc/$newVersionInfix\"");
|
||||||
|
|
||||||
//Define the list of directories to search
|
//Define the list of directories to search
|
||||||
$directoriesToSearch = ['css', 'js', 'Puc'];
|
$directoriesToSearch = ['css', 'js', 'Puc'];
|
||||||
|
|
@ -111,7 +111,7 @@ foreach ($standaloneFiles as $standaloneFile) {
|
||||||
//Rename the loader file and update the version numbers.
|
//Rename the loader file and update the version numbers.
|
||||||
$oldLoaderFileName = "load-$oldVersionInfix.php";
|
$oldLoaderFileName = "load-$oldVersionInfix.php";
|
||||||
$newLoaderFileName = "load-$newVersionInfix.php";
|
$newLoaderFileName = "load-$newVersionInfix.php";
|
||||||
exec("git mv $oldLoaderFileName $newLoaderFileName");
|
exec("git mv \"$oldLoaderFileName\" \"$newLoaderFileName\"");
|
||||||
updateVersionNumbers($repositoryRoot . '/' . $newLoaderFileName, $oldVersion, $newVersion);
|
updateVersionNumbers($repositoryRoot . '/' . $newLoaderFileName, $oldVersion, $newVersion);
|
||||||
|
|
||||||
//Replace the old loader file name with new one in files that use it.
|
//Replace the old loader file name with new one in files that use it.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue