makesyscalls: simplify capenabled pipeline
Replace cat + 2x grep with one grep. Sponsored by: Turing Robotic Industries
This commit is contained in:
parent
2d14fb8bec
commit
00ce0c6258
@ -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=""
|
||||
|
Loading…
Reference in New Issue
Block a user