]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/run-standalone.sh: fix the find option to be compatible with GNU find 16646/head
authorKefu Chai <kchai@redhat.com>
Fri, 28 Jul 2017 06:18:09 +0000 (14:18 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 28 Jul 2017 06:22:02 +0000 (14:22 +0800)
also re-indent to be consistent with other part of this script

Signed-off-by: Kefu Chai <kchai@redhat.com>
qa/run-standalone.sh

index 4d3e8c7ba91523d245f4b35ba2039999d5c05da9..185ed41c25d27444c2d4dd2196e2739fd3b1c1cd 100755 (executable)
@@ -6,11 +6,14 @@ if [ ! -e Makefile ]; then
 fi
 
 if [ `uname` = FreeBSD ]; then
-  # otherwise module prettytable will not be found
-  export PYTHONPATH=/usr/local/lib/python2.7/site-packages
+    # otherwise module prettytable will not be found
+    export PYTHONPATH=/usr/local/lib/python2.7/site-packages
+    exec_mode=+111
+else
+    exec_mode=/111
 fi
 
-for f in `find ../qa/standalone -perm +111 -type f`
+for f in `find ../qa/standalone -perm $exec_mode -type f`
 do
     echo '--- $f ---'
     PATH=$PATH:bin \