Skip to content

Commit

Permalink
fix(bin): adapt slashes to windows if needed
Browse files Browse the repository at this point in the history
  • Loading branch information
yoannmoinet committed Aug 15, 2016
1 parent 11da89a commit 7dffd7c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bin/copyToGhPages.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ var fs = require('fs');

var isWin = /^win/.test(process.platform);
var mv = isWin ? 'move' : 'mv';
var slash = isWin ? '\\' : '/';

queue([
checkoutPage,
Expand Down Expand Up @@ -51,7 +52,8 @@ function importBuild (next) {
console.log(' - checkout build from master and move it to ./javascripts/');
exec('git checkout master -- ./dist/nipplejs.js && ' +
'git reset ./dist/nipplejs.js && ' +
mv + ' ./dist/nipplejs.js ./javascripts/',
mv + ' .' + slash + 'dist' + slash + 'nipplejs.js' +
'.' + slash + 'javascripts' + slash,
next);
}

Expand Down

0 comments on commit 7dffd7c

Please sign in to comment.