diff --git a/hostd/scripts/download.ts b/hostd/scripts/download.ts index 7410ff6..e3c2c4f 100644 --- a/hostd/scripts/download.ts +++ b/hostd/scripts/download.ts @@ -13,7 +13,7 @@ downloadRelease() async function downloadRelease(): Promise { try { const versionFilePath = path.join(getDaemonDirectoryPath(), 'version') - const tag = fs.readFileSync(versionFilePath, { encoding: 'utf8' }) + const tag = fs.readFileSync(versionFilePath, { encoding: 'utf8' }).trim() const octokit = new Octokit({ auth: process.env.GITHUB_TOKEN, diff --git a/renterd/scripts/download.ts b/renterd/scripts/download.ts index d5632b3..4370dd1 100644 --- a/renterd/scripts/download.ts +++ b/renterd/scripts/download.ts @@ -13,7 +13,7 @@ downloadRelease() async function downloadRelease(): Promise { try { const versionFilePath = path.join(getDaemonDirectoryPath(), 'version') - const tag = fs.readFileSync(versionFilePath, { encoding: 'utf8' }) + const tag = fs.readFileSync(versionFilePath, { encoding: 'utf8' }).trim() const octokit = new Octokit({ auth: process.env.GITHUB_TOKEN,