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

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