mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-08 02:02:50 +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
|
# Remove the old launcher package in case the config changes
|
||||||
if [ $OS = 'centos' ]; then
|
if [ $OS = 'centos' ]; then
|
||||||
if rpm -qa | grep launcher-final; then
|
if rpm -qa | grep -q launcher-final; then
|
||||||
yum remove -y launcher-final
|
yum remove -y launcher-final
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
if dpkg -l | grep launcher-final; then
|
if dpkg -l | grep -q launcher-final; then
|
||||||
apt purge -y launcher-final
|
apt purge -y launcher-final
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user