From ae93af32a0db5545a633aa70e03749be3ff0412e Mon Sep 17 00:00:00 2001 From: "Mikhail f. Shiryaev" Date: Mon, 2 Jan 2023 14:23:53 +0100 Subject: [PATCH] Escape submodules in style-check --- utils/check-style/check-submodules | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/check-style/check-submodules b/utils/check-style/check-submodules index 815e6c13c0f..1d15bac9d69 100755 --- a/utils/check-style/check-submodules +++ b/utils/check-style/check-submodules @@ -12,9 +12,9 @@ cd "$GIT_ROOT" # Remove keys for submodule.*.path parameters, the values are separated by \0 # and check if the directory exists git config --file .gitmodules --null --get-regexp path | sed -z 's|.*\n||' | \ - xargs -P100 -0 --no-run-if-empty -I{} bash -c 'if ! test -d {}; then echo Directory for submodule {} is not found; exit 1; fi' 2>&1 + xargs -P100 -0 --no-run-if-empty -I{} bash -c 'if ! test -d '"'{}'"'; then echo Directory for submodule {} is not found; exit 1; fi' 2>&1 # And check that the submodule is fine git config --file .gitmodules --null --get-regexp path | sed -z 's|.*\n||' | \ - xargs -P100 -0 --no-run-if-empty -I{} git submodule status -q {} 2>&1 + xargs -P100 -0 --no-run-if-empty -I{} git submodule status -q '{}' 2>&1