Skip to content

Commit

Permalink
fix: download script trim version
Browse files Browse the repository at this point in the history
  • Loading branch information
alexfreska committed May 14, 2024
1 parent 1911963 commit 3c1e7bc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion hostd/scripts/download.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ downloadRelease()
async function downloadRelease(): Promise<void> {
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,
Expand Down
2 changes: 1 addition & 1 deletion renterd/scripts/download.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ downloadRelease()
async function downloadRelease(): Promise<void> {
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,
Expand Down

0 comments on commit 3c1e7bc

Please sign in to comment.