From 93ee8c7a7f1f016ee4f8b9b4e1dd3b148985905b Mon Sep 17 00:00:00 2001 From: chenlo2x Date: Mon, 8 Oct 2018 16:58:32 +0800 Subject: [PATCH] scripts/check_format: fix an escaping issue. Some older versions of Fedora require putting the git grep contents in quotes before feeding to the while loop. Change-Id: I649d5520f4a8c0a903aed2e2dda337e91b5b596e Signed-off-by: chenlo2x Reviewed-on: https://review.gerrithub.io/428332 Reviewed-by: Jim Harris Reviewed-by: Shuhei Matsumoto Reviewed-by: Liang Yan Reviewed-by: Changpeng Liu Chandler-Test-Pool: SPDK Automated Test System Tested-by: SPDK CI Jenkins --- scripts/check_format.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/check_format.sh b/scripts/check_format.sh index ff4046c77..f7e718d8e 100755 --- a/scripts/check_format.sh +++ b/scripts/check_format.sh @@ -45,7 +45,7 @@ while read -r perm _res0 _res1 path; do ;; esac -done <<< $(git grep -I --name-only --untracked -e . | git ls-files -s) +done <<< "$(git grep -I --name-only --untracked -e . | git ls-files -s)" if [ $rc -eq 0 ]; then echo " OK"