diff --git a/build_tools/rename_zip.js b/build_tools/rename_zip.js index 65da9c06e..c14eb0745 100644 --- a/build_tools/rename_zip.js +++ b/build_tools/rename_zip.js @@ -13,8 +13,6 @@ * permissions and limitations under the License. */ -const shell = require('child_process').execSync; - const packageJson = require('../package.json'); const osdJson = require('../opensearch_dashboards.json'); const pluginName = 'security-dashboards'; @@ -23,4 +21,6 @@ const oldName = `build/${osdJson.id}-${osdJson.opensearchDashboardsVersion}.zip` const newName = `build/${pluginName}-${packageJson.version}.zip`; console.log('rename ' + oldName + ' to ' + newName); -shell(`mv ${oldName} ${newName}`); + +const fs = require('fs'); +fs.renameSync(oldName, newName);