makesyscalls: simplify capenabled pipeline

Replace cat + 2x grep with one grep.

Sponsored by:	Turing Robotic Industries
This commit is contained in:
Ed Maste 2018-06-11 18:57:40 +00:00
parent 2d14fb8bec
commit 00ce0c6258

View File

@ -47,7 +47,7 @@ systracetmp="systrace.$$"
systraceret="systraceret.$$"
if [ -r capabilities.conf ]; then
capenabled=`cat capabilities.conf | grep -v "^#" | grep -v "^$"`
capenabled=`egrep -v '^#|^$' capabilities.conf`
capenabled=`echo $capenabled | sed 's/ /,/g'`
else
capenabled=""