From 02281f393fb43deee6d44bc85d45e41d56446e9e Mon Sep 17 00:00:00 2001 From: Nurbakhyt Sembayev <106753054+nurbq@users.noreply.github.com> Date: Fri, 7 Apr 2023 00:40:29 +0500 Subject: [PATCH] Fix script for Windows (#1393) * Fix script for Windows Signed-off-by: nurbqq Signed-off-by: nurbqq <106753054+nurbq@users.noreply.github.com> Co-authored-by: Stephen Crawford <65832608+scrawfor99@users.noreply.github.com> --- build_tools/rename_zip.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/build_tools/rename_zip.js b/build_tools/rename_zip.js index 65da9c06ec..c14eb0745f 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);