refactor: simplify confusing chain of commands

This commit is contained in:
José Oliveira 2022-03-04 17:14:57 +00:00
parent 6bb287ca38
commit 040d8d5bab
3 changed files with 8 additions and 8 deletions

View file

@ -27,7 +27,7 @@ function updateCore (coinRec, isCurrentlyRunning) {
common.es(`rm -r /tmp/${coinRec.dir.replace('/bin', '')}`)
common.es(`rm /tmp/litecoin.tar.gz`)
if (common.es(`ps -ef | grep "changetype=" /mnt/blockchains/litecoin/litecoin.conf | { grep -v grep || true; }`)) {
if (common.es(`grep "changetype=" /mnt/blockchains/litecoin/litecoin.conf || true`)) {
common.logger.info(`changetype already defined, skipping...`)
} else {
common.logger.info(`Enabling bech32 change addresses in config file..`)