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
andy31415 and andreilitvin authored Jul 21, 2023
1 parent 8295635 commit bcc4c26
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 bcc4c26

Please sign in to comment.