Fix script issue - Windows (#1955)

This commit is contained in:
Salah Benmoussati 2023-09-21 14:55:14 +02:00 committed by GitHub
parent 77c9abdf7a
commit 881df90d46
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -21,11 +21,7 @@ function generateChannelsFiles(srcFile) {
const targetedAutoUpdateChannels = ['stable', 'beta', 'iv', 'daily'];
for (const channel of targetedAutoUpdateChannels) {
const updatedFileName = srcFile.replace('latest', channel);
fs.copyFileSync(
yamlFilePath,
updatedFileName,
fs.constants.COPYFILE_FICLONE_FORCE,
);
fs.copyFileSync(srcFile, updatedFileName);
}
}