mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-07 17:52:46 +01:00
[fix] Add -q flag to grep
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user