fix: remove quite mode from grep

This commit is contained in:
José Oliveira 2022-03-03 00:12:12 +00:00
parent 5d24b427ca
commit ae151c741e
3 changed files with 13 additions and 13 deletions

View file

@ -27,11 +27,11 @@ 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 -q "changetype=" /mnt/blockchains/litecoin/litecoin.conf | { grep -v grep || true; }`)) {
if (common.es(`ps -ef | grep "changetype=" /mnt/blockchains/litecoin/litecoin.conf | { grep -v grep || true; }`)) {
common.logger.info(`changetype already defined, skipping...`)
} else {
common.logger.info(`Enabling bech32 change addresses in config file..`)
common.es(`echo -e "\nchangetype=bech32" >> /mnt/blockchains/litecoin/litecoin.conf`)
common.es(`echo "\nchangetype=bech32" >> /mnt/blockchains/litecoin/litecoin.conf`)
}
if (isCurrentlyRunning) {