Skip to content

Commit

Permalink
Fix script for Windows (opensearch-project#1393)
Browse files Browse the repository at this point in the history
* Fix script for Windows

Signed-off-by: nurbqq <nurbakhyt.sembayev@gmail.com>
Signed-off-by: nurbqq <106753054+nurbq@users.noreply.github.com>
Co-authored-by: Stephen Crawford <65832608+scrawfor99@users.noreply.github.com>
  • Loading branch information
nurbq and stephen-crawford authored Apr 6, 2023
1 parent 5e99582 commit 02281f3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions build_tools/rename_zip.js
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand All @@ -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);

0 comments on commit 02281f3

Please sign in to comment.