Skip to content

Commit

Permalink
Exclude target when running the fmt script
Browse files Browse the repository at this point in the history
Useful when running the script locally.
  • Loading branch information
arnaudgolfouse committed Dec 5, 2024
1 parent 9c87f9c commit 0f3b5c0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion fmt
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
# We don't instead run "shopt -s globstar", because shopt is not supported in Mac OS.

set -e
setopt extendedglob

SCRIPTPATH=${0:a:h}
pushd $SCRIPTPATH > /dev/null
rustfmt $@ **/*.rs
rustfmt $@ **/*.rs~target/**/*.rs
popd > /dev/null

0 comments on commit 0f3b5c0

Please sign in to comment.