From abc995b6b4e0117b74c301abcb4faf4ea2ebef25 Mon Sep 17 00:00:00 2001 From: Greg Farnum Date: Thu, 6 Nov 2014 17:59:22 -0800 Subject: [PATCH] qa/workunits/fs/misc: combine sudo and echo effectively Signed-off-by: Greg Farnum --- qa/workunits/fs/misc/acl.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qa/workunits/fs/misc/acl.sh b/qa/workunits/fs/misc/acl.sh index 4186cf91ad66e..a213300b70866 100755 --- a/qa/workunits/fs/misc/acl.sh +++ b/qa/workunits/fs/misc/acl.sh @@ -19,7 +19,7 @@ do # inherited ACL from parent directory's default ACL mkdir d1 c1=`getfacl d1 | grep -c "nobody:rw"` - sudo echo 3 > /proc/sys/vm/drop_caches + echo 3 | sudo tee /proc/sys/vm/drop_caches > /dev/null c2=`getfacl d1 | grep -c "nobody:rw"` rmdir d1 if [ $c1 -ne 2 ] || [ $c2 -ne 2 ] -- 2.39.5