From 75e361433dbb5e14d8a12f1162d3392eba487696 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Fri, 28 Jul 2017 14:18:09 +0800 Subject: [PATCH] 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 --- qa/run-standalone.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/qa/run-standalone.sh b/qa/run-standalone.sh index 4d3e8c7ba9152..185ed41c25d27 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 \ -- 2.39.5