From 2894082a772d511094338d68787184e0f02bffa9 Mon Sep 17 00:00:00 2001 From: Andrei Litvin Date: Fri, 21 Jul 2023 17:09:32 -0400 Subject: [PATCH] Do not newline-separate restyle path otherwise only the first argument is processed (#28175) Co-authored-by: Andrei Litvin --- scripts/helpers/restyle-diff.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/helpers/restyle-diff.sh b/scripts/helpers/restyle-diff.sh index 7c29ac61d34335..21c01011a7c60c 100755 --- a/scripts/helpers/restyle-diff.sh +++ b/scripts/helpers/restyle-diff.sh @@ -35,10 +35,10 @@ cd "$CHIP_ROOT" restyle-paths() { if hash restyle-path 2>/dev/null; then - command restyle-path "$@" + echo "$@" | xargs restyle-path else url=https://github.com/restyled-io/restyler/raw/main/bin/restyle-path - sh <(curl --location --proto "=https" --tlsv1.2 "$url" -sSf) "$@" + echo "$@" | xargs sh <(curl --location --proto "=https" --tlsv1.2 "$url" -sSf) fi }