Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Commit

Permalink
Use path.join for path resolving
Browse files Browse the repository at this point in the history
  • Loading branch information
Stuyk committed Oct 9, 2019
1 parent 2723489 commit a95338d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions scripts/copy-ripe-md.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
var fs = require('fs');
var path = require('path');
var root = __dirname.replace('scripts', '');

if(!fs.existsSync(root + 'dist'))
fs.mkdirSync(root + 'dist');
if(!fs.existsSync(path.join(root + 'dist')))
fs.mkdirSync(path.join(root + 'dist'));

fs.copyFileSync(root + 'src\\ripemd.es5.js', root + 'dist\\ripemd.js');
fs.copyFileSync(path.join(root + 'src/ripemd.es5.js'), path.join(root + 'dist/ripemd.js'));

0 comments on commit a95338d

Please sign in to comment.