Skip to content

Commit

Permalink
Do not newline-separate restyle path otherwise only the first argumen…
Browse files Browse the repository at this point in the history
…t is processed (#28175)

Co-authored-by: Andrei Litvin <[email protected]>
  • Loading branch information
2 people authored and pull[bot] committed Jun 13, 2024
1 parent 7c00835 commit 1138311
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/helpers/restyle-diff.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 1138311

Please sign in to comment.