diff options
author | Simba Zhang <solderzzc@gmail.com> | 2015-07-30 01:40:23 +0300 |
---|---|---|
committer | Simba Zhang <solderzzc@gmail.com> | 2015-07-30 01:40:23 +0300 |
commit | 384a91a784e6955c6de353c6ea4afa8ea944bc97 (patch) | |
tree | e12a215d9ee23590068f08e0552619acc28b5f73 /bin/cmd.js | |
parent | b75d0485885f340cc6411839e9c0bc8bc4788bda (diff) |
Fixed for CI style check.
Diffstat (limited to 'bin/cmd.js')
-rwxr-xr-x | bin/cmd.js | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -102,7 +102,7 @@ function checkPermission (filename) { errorAndExit('Your script ' + filename + ' is not exist') } // check if the script has executable permission - if (!(1&parseInt((stats.mode & parseInt('777', 8)).toString(8)[0]))) { + if (!(1 & (parseInt((stats.mode & parseInt('777', 8)).toString(8)[0])))) { errorAndExit(filename + ' don\'t have executable permission') } return fs.realpathSync(filename) |