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

@ -20,7 +20,7 @@ function updateCore (coinRec, isCurrentlyRunning) {
common.logger.info('Updating Dash Core. This may take a minute...')
common.es(`sudo supervisorctl stop dash`)
common.es(`curl -#Lo /tmp/dash.tar.gz ${coinRec.url}`)
if (common.es(`sha256 /tmp/dash.tar.gz | awk '{print $1}'`).trim() !== coinRec.urlHash) {
if (common.es(`sha256sum /tmp/dash.tar.gz | awk '{print $1}'`).trim() !== coinRec.urlHash) {
common.logger.info('Failed to update Dash Core: Package signature do not match!')
return
}