redirect output to /dev/null (in case /proc/1/comm doesn't exist)

This commit is contained in:
kytv
2012-10-30 19:41:35 +00:00
parent 6e66d377f6
commit f6bac8a08e

View File

@@ -45,7 +45,7 @@ GETTEXT=$(which gettext > /dev/null 2>&1)
# Where to install the systemd service
SYSTEMD_SERVICE="/etc/systemd/system/${APP_NAME}.service"
if grep -q systemd /proc/1/comm ; then
if grep -q systemd /proc/1/comm > /dev/null 2>&1 ; then
USE_SYSTEMD=1
fi