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:47:37 +0300
committerSimba Zhang <solderzzc@gmail.com>2015-07-30 01:47:37 +0300
commitadc9c708caa64ca9cdeecb96581f1cd9647a8cb0 (patch)
treea3a2b06aaba0f116814cb45482c9ba3afd81d4fd /bin/cmd.js
parent384a91a784e6955c6de353c6ea4afa8ea944bc97 (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 d783974..cbfbf3d 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], 10))) {
errorAndExit(filename + ' don\'t have executable permission')
}
return fs.realpathSync(filename)