silence output by mount/grep

This commit is contained in:
Patrick Schleizer 2019-10-22 08:54:48 -04:00
parent a1154170c9
commit b55913637b
No known key found for this signature in database
GPG Key ID: CB8D50BB77BB3C48

View File

@ -11,7 +11,7 @@
set -e set -e
## If hidepid is not in use, just use pkexec normally. ## If hidepid is not in use, just use pkexec normally.
if ! mount | grep "/proc" | grep "hidepid=2" ; then if ! mount | grep "/proc" | grep "hidepid=2" &>/dev/null ; then
pkexec.security-misc-orig "$@" pkexec.security-misc-orig "$@"
exit $? exit $?
fi fi