Skip to content

Commit

Permalink
Change apply to write
Browse files Browse the repository at this point in the history
  • Loading branch information
mongolyy committed Jun 7, 2024
1 parent 1f74edd commit 5906d30
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/biome.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ biome_check() {
exit 1
fi
# shellcheck disable=SC2086
"$(npm root)"/.bin/biome check --apply $1 2>&1 1>/dev/null |
"$(npm root)"/.bin/biome check --write $1 2>&1 1>/dev/null |
sed 's/ *$//' |
awk 'BEGIN { RS=""; ORS="\n\n" } { if (index($0, "│") > 0) { print " ```\n" $0 "\n ```" } else { print $0 } }'
}
Expand Down
2 changes: 1 addition & 1 deletion test/shellspec/script_spec.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Describe 'biome.sh'
Include lib/biome.sh
cd test || exit

# Undo changes made by `biome check --apply` command
# Undo changes made by `biome check --write` command
setup() {
cp -r testdata testdata_origin
}
Expand Down

0 comments on commit 5906d30

Please sign in to comment.