Skip to content

Commit

Permalink
add install script
Browse files Browse the repository at this point in the history
  • Loading branch information
NAlexandrov committed Aug 27, 2015
1 parent ca6166f commit 90a9e19
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"description": "Wrapper around the WMI client. Linux and Windows WMI clients are supported.",
"main": "index.js",
"scripts": {
"test": "npm test"
"test": "npm test",
"install": "node scripts/install.js"
},
"repository": {
"type": "git",
Expand Down
7 changes: 7 additions & 0 deletions scripts/install.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
var fs = require('fs');
var path = require('path');

if (process.platform === 'linux') {
fs.chmodSync(path.join(__dirname, '..', 'bin', 'wmic_centos_x64'), 777);
fs.chmodSync(path.join(__dirname, '..', 'bin', 'wmic_ubuntu_x64'), 777);
}

0 comments on commit 90a9e19

Please sign in to comment.