]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/workunits/fs/misc: fix syntax error 2669/head
authorYan, Zheng <zyan@redhat.com>
Wed, 8 Oct 2014 12:38:33 +0000 (20:38 +0800)
committerYan, Zheng <zyan@redhat.com>
Fri, 10 Oct 2014 01:30:29 +0000 (09:30 +0800)
Signed-off-by: Yan, Zheng <zyan@redhat.com>
qa/workunits/fs/misc/acl.sh

index 8f1c921182b5f0660b551431daefd5468b5ca129..4186cf91ad66e5cbaa0ee78589fd77785f6e93ec 100755 (executable)
@@ -12,15 +12,17 @@ if test $? != 0; then
 fi
 
 set -e
-for (( i=0; i<100; i++))
+c=0
+while [ $c -lt 100  ]
 do
+       c=`expr $c + 1`
        # 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
        c2=`getfacl d1 | grep -c "nobody:rw"`
        rmdir d1
-       if [[ $c1 -ne 2 || $c2 -ne 2 ]]
+       if [ $c1 -ne 2 ] || [ $c2 -ne 2 ]
        then
                echo "ERROR: incorrect ACLs"
                exit 1