fix div
This commit is contained in:
@@ -111,6 +111,8 @@ function buildUpgradePackage(versionFrom, params)
|
||||
{
|
||||
return new Promise(function (resolve) {
|
||||
var acceptedVersionName = params.acceptedVersionName || versionFrom;
|
||||
var isDev = params.isDev;
|
||||
var withVendor = params.withVendor;
|
||||
|
||||
var path = require('path');
|
||||
var fs = require('fs');
|
||||
@@ -239,6 +241,12 @@ function buildUpgradePackage(versionFrom, params)
|
||||
cp.execSync('xargs -a ' + diffBeforeUpgradeFolderPath + ' cp -p --parents -t ' + upgradePath + '/beforeUpgradeFiles');
|
||||
}
|
||||
|
||||
if (!isDev) {
|
||||
if (fs.existsSync(upgradeDataFolderPath + '/scripts')) {
|
||||
cp.execSync('cp -r ' + upgradeDataFolderPath + '/scripts ' + upgradePath + '/scripts');
|
||||
}
|
||||
}
|
||||
|
||||
execute('xargs -a ' + diffFilePath + ' cp -p --parents -t ' + upgradePath + '/files' , function (stdout) {
|
||||
var d = new Date();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user