Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added command line hook scripts(done/exit). #389

Merged
merged 4 commits into from Jul 30, 2015
Merged
Changes from 1 commit
Commits
File filter...
Filter file types
Jump to…
Jump to file or symbol
Failed to load files and symbols.

Always

Just for now

Prev

Fixed for CI style check.

  • Loading branch information
solderzzc committed Jul 29, 2015
commit adc9c708caa64ca9cdeecb96581f1cd9647a8cb0
@@ -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)
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.