diff --git a/Tools/tool-utils.js b/Tools/tool-utils.js index 6c59cffc1a..f7880ce53e 100644 --- a/Tools/tool-utils.js +++ b/Tools/tool-utils.js @@ -83,13 +83,13 @@ toolUtils.fileExists = async function(filePath) { toolUtils.githubOauthToken = async function() { const fs = require('fs-extra'); - const r = await fs.readFile(__dirname + '/Tools/github_oauth_token.txt'); + const r = await fs.readFile(__dirname + '/github_oauth_token.txt'); return r.toString(); } toolUtils.githubRelease = async function(tagName, isDraft) { const fetch = require('node-fetch'); - + const oauthToken = await githubOauthToken(); const response = await fetch('https://api.github.com/repos/laurent22/joplin/releases', {