Skip to content

Commit 4ea15ed

Browse files
committed
Touch up checkformat.bash
The logic can be slightly simplified, and the script doesn't require Bash after all.
1 parent b218fd6 commit 4ea15ed

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/checkformat.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ jobs:
1616
- name: Check format
1717
run: |
1818
sudo apt install clang-format
19-
contrib/checkformat.bash
19+
contrib/checkformat.sh
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
#!/usr/bin/env bash
1+
#!/usr/bin/env sh
22

33
# SPDX-License-Identifier: MIT
44

55
clang-format --version
66

7-
find . -type f \( -iname '*.hpp' -o -iname '*.cpp' \) -exec clang-format -i {} +
7+
find . -type f -iname '*.[ch]pp' -exec clang-format -i {} +
88

99
if ! git diff-index --quiet HEAD --; then
1010
echo 'Unformatted files:'

0 commit comments

Comments
 (0)