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 Jul 26, 2023
1 parent 6eab9e4 commit 2894082
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 2894082

Please sign in to comment.