Commit 93ee8c7a authored by chenlo2x's avatar chenlo2x Committed by Changpeng Liu
Browse files

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: default avatarchenlo2x <longx.o.chen@intel.com>
Reviewed-on: https://review.gerrithub.io/428332


Reviewed-by: default avatarJim Harris <james.r.harris@intel.com>
Reviewed-by: default avatarShuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Reviewed-by: default avatarLiang Yan <liang.z.yan@intel.com>
Reviewed-by: default avatarChangpeng Liu <changpeng.liu@intel.com>
Chandler-Test-Pool: SPDK Automated Test System <sys_sgsw@intel.com>
Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
parent 7c56c393
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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"