Skip to content

Commit

Permalink
Bento: checksum name support
Browse files Browse the repository at this point in the history
  • Loading branch information
spinx committed Sep 6, 2024
1 parent b756d4b commit b8748a0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions lib/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ export const loadConfig = async (configPath) => {
)
}

if (typeof config.checksum === 'undefined') {
config.checksum = 'benthos'
}

return config
}

Expand Down
2 changes: 1 addition & 1 deletion lib/install.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const get = async (benthos) => {

const [data, checksums] = await Promise.all([
download(`${root}/${name}`),
download(`${root}/benthos_${benthos.version}_checksums.txt`)
download(`${root}/${benthos.checksum}_${benthos.version}_checksums.txt`)
])

return { name, data, checksums }
Expand Down

0 comments on commit b8748a0

Please sign in to comment.