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