1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-27 10:32:58 +02:00

Fixed tool utils

This commit is contained in:
Laurent Cozic 2018-02-04 17:44:32 +00:00
parent d278d830f0
commit 2645ec96a8

View File

@ -114,8 +114,8 @@ toolUtils.githubRelease = async function(tagName, isDraft) {
toolUtils.handleCommitHook = async function() {
const fs = require('fs-extra');
const filePath = __dirname + '/commit_hook.txt');
if (!(await fs.pathExists(filePath)) return;
const filePath = __dirname + '/commit_hook.txt';
if (!(await fs.pathExists(filePath))) return;
const content = await fs.readFile(filePath);
if (!content) throw new Error('No content in ' + filePath);
console.info('Running hook: ' + content);