From 5cb8d0beda46ed6d57cb139f1a9ef0df771c9c95 Mon Sep 17 00:00:00 2001 From: William Wernert Date: Wed, 4 Nov 2020 14:23:24 -0500 Subject: [PATCH] [fix] Add -q flag to grep --- setup/so-functions | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup/so-functions b/setup/so-functions index ad2ce7f41..35f8aea2f 100755 --- a/setup/so-functions +++ b/setup/so-functions @@ -1450,11 +1450,11 @@ reinstall_init() { # Remove the old launcher package in case the config changes if [ $OS = 'centos' ]; then - if rpm -qa | grep launcher-final; then + if rpm -qa | grep -q launcher-final; then yum remove -y launcher-final fi else - if dpkg -l | grep launcher-final; then + if dpkg -l | grep -q launcher-final; then apt purge -y launcher-final fi fi