[fix] Add -q flag to grep

This commit is contained in:
William Wernert
2020-11-04 14:23:24 -05:00
parent b4446cba9a
commit 5cb8d0beda

View File

@@ -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