🐛 Fix patch verification
This commit is contained in:
parent
a59a6bd767
commit
b984512a75
1 changed files with 1 additions and 1 deletions
|
@ -12,7 +12,7 @@ export default function verifyPatch(fileEntries: ISsnFileEntry[], product: Produ
|
|||
//Check that last file is the .version file with diffType 0.
|
||||
const lastFile = fileEntries[fileEntries.length - 1];
|
||||
const validLastFileName = `${product}.version`;
|
||||
const validLastFileAlternate = `Assets/assets_${product}_version.txt`;
|
||||
const validLastFileAlternate = `Assets/${product}_version.txt`;
|
||||
if (lastFile.name === validLastFileName) {
|
||||
if (lastFile.diffType !== SsnDiffType.NewFile) {
|
||||
throw new Error(`Last file (.version file) must have diffType 0 but it had diffType ${lastFile.diffType}.`);
|
||||
|
|
Loading…
Reference in a new issue