From 3c1e7bc5b1a216b5f8ce8092b461b9706652d1b8 Mon Sep 17 00:00:00 2001 From: Alex Freska Date: Tue, 14 May 2024 11:49:00 -0400 Subject: [PATCH] fix: download script trim version --- hostd/scripts/download.ts | 2 +- renterd/scripts/download.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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,