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:
parent
d278d830f0
commit
2645ec96a8
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user