You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-09-16 08:56:40 +02:00
Fixed tool utils
This commit is contained in:
@@ -114,8 +114,8 @@ toolUtils.githubRelease = async function(tagName, isDraft) {
|
|||||||
|
|
||||||
toolUtils.handleCommitHook = async function() {
|
toolUtils.handleCommitHook = async function() {
|
||||||
const fs = require('fs-extra');
|
const fs = require('fs-extra');
|
||||||
const filePath = __dirname + '/commit_hook.txt');
|
const filePath = __dirname + '/commit_hook.txt';
|
||||||
if (!(await fs.pathExists(filePath)) return;
|
if (!(await fs.pathExists(filePath))) return;
|
||||||
const content = await fs.readFile(filePath);
|
const content = await fs.readFile(filePath);
|
||||||
if (!content) throw new Error('No content in ' + filePath);
|
if (!content) throw new Error('No content in ' + filePath);
|
||||||
console.info('Running hook: ' + content);
|
console.info('Running hook: ' + content);
|
||||||
|
Reference in New Issue
Block a user