Do not newline-separate restyle path otherwise only the first argument is processed (#28175)
Co-authored-by: Andrei Litvin <andreilitvin@google.com>
diff --git a/scripts/helpers/restyle-diff.sh b/scripts/helpers/restyle-diff.sh
index 7c29ac6..21c0101 100755
--- a/scripts/helpers/restyle-diff.sh
+++ b/scripts/helpers/restyle-diff.sh
@@ -35,10 +35,10 @@
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
}