Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/webtorrent/webtorrent.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimba Zhang <solderzzc@gmail.com>2015-07-30 01:40:23 +0300
committerSimba Zhang <solderzzc@gmail.com>2015-07-30 01:40:23 +0300
commit384a91a784e6955c6de353c6ea4afa8ea944bc97 (patch)
treee12a215d9ee23590068f08e0552619acc28b5f73 /bin/cmd.js
parentb75d0485885f340cc6411839e9c0bc8bc4788bda (diff)
Fixed for CI style check.
Diffstat (limited to 'bin/cmd.js')
-rwxr-xr-xbin/cmd.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/cmd.js b/bin/cmd.js
index bd91b5f..d783974 100755
--- a/bin/cmd.js
+++ b/bin/cmd.js
@@ -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)