fix: trim cmd output and binaries paths

This commit is contained in:
José Oliveira 2021-09-08 17:07:15 +01:00
parent b53090db05
commit 9152c48e14
4 changed files with 7 additions and 5 deletions

View file

@ -23,7 +23,7 @@ function updateCore (coinRec, isCurrentlyRunning) {
common.es(`tar -xzf /tmp/dash.tar.gz -C /tmp/`)
common.logger.info('Updating wallet...')
common.es(`cp /tmp/${coinRec.dir}/bin/* /usr/local/bin/`)
common.es(`cp /tmp/${coinRec.dir}/* /usr/local/bin/`)
common.es(`rm -r /tmp/${coinRec.dir.replace('/bin', '')}`)
common.es(`rm /tmp/dash.tar.gz`)