Skip to content

Commit

Permalink
fix prepare_commit.sh (#59713)
Browse files Browse the repository at this point in the history
* fix prepare_commit.sh

* fix regex
  • Loading branch information
3nids authored Dec 3, 2024
1 parent a6946c6 commit 6933b13
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scripts/prepare_commit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ for f in $MODIFIED; do
esac

# only run astyle on sipified directories, others are handled by clang-format (see .pre-commit-config.yaml)
if [[ $f =~ "^src/(core|gui|analysis|3d|server)" ]]; then
if [[ $f =~ ^src/(core|gui|analysis|3d|server) ]]; then
m=$f.$REV.prepare
cp "$f" "$m"
ASTYLEPROGRESS=" [$i/$N]" astyle.sh "$f"
Expand Down
2 changes: 1 addition & 1 deletion scripts/verify_indentation.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ for f in $FILES; do
esac

# only run astyle on sipified directories, others are handled by clang-format (see .pre-commit-config.yaml)
if [[ $f =~ "^src/(core|gui|analysis|3d|server)" ]]; then
if [[ $f =~ ^src/(core|gui|analysis|3d|server) ]]; then
m="$f.prepare"
cp "$f" "$m"
astyle.sh "$f"
Expand Down

0 comments on commit 6933b13

Please sign in to comment.