Skip to content

Commit

Permalink
[CMS PR 25559] Add list of folders to keep on update (#69)
Browse files Browse the repository at this point in the history
  • Loading branch information
richard67 authored Jul 2, 2021
1 parent 67b4630 commit dbaac21
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions build/deleted_file_check.php
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,19 @@ function usage($command)
"'/language/en-GB/en-GB.mod_search.sys.ini',",
];

// Specific folders that we want to keep on upgrade
$foldersToKeep = [
"'/bin',",
];

// Remove folders from the results which we want to keep on upgrade
foreach ($foldersToKeep as $folder)
{
if (($key = array_search($folder, $foldersDifference)) !== false) {
unset($foldersDifference[$key]);
}
}

asort($filesDifference);
rsort($foldersDifference);

Expand Down

0 comments on commit dbaac21

Please sign in to comment.