From: Kefu Chai Date: Fri, 28 Jul 2017 06:18:09 +0000 (+0800) Subject: qa/run-standalone.sh: fix the find option to be compatible with GNU find X-Git-Tag: v12.1.2~51^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F16646%2Fhead;p=ceph.git qa/run-standalone.sh: fix the find option to be compatible with GNU find also re-indent to be consistent with other part of this script Signed-off-by: Kefu Chai --- diff --git a/qa/run-standalone.sh b/qa/run-standalone.sh index 4d3e8c7ba91..185ed41c25d 100755 --- a/qa/run-standalone.sh +++ b/qa/run-standalone.sh @@ -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 \