fix: sha256sum command syntax

This commit is contained in:
José Oliveira 2022-08-23 11:47:54 +01:00 committed by Rafael
parent f81b254d5a
commit 06961c2972
8 changed files with 8 additions and 8 deletions

View file

@ -148,7 +148,7 @@ function fetchAndInstall (coinRec) {
const binDir = requiresUpdate ? binaries.defaultDir : binaries.dir
es(`wget -q ${url}`)
if (es(`sha256 ${downloadFile} | awk '{print $1}'`).trim() !== hash) {
if (es(`sha256sum ${downloadFile} | awk '{print $1}'`).trim() !== hash) {
logger.info(`Failed to install ${coinRec.code}: Package signature do not match!`)
return
}