Skip to content

Commit

Permalink
run in bash
Browse files Browse the repository at this point in the history
  • Loading branch information
simonpintarelli committed May 27, 2024
1 parent 429585e commit 7ed340c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/check-format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ jobs:
- uses: actions/checkout@v4
- name: Check .cpp and .hpp files
run: |
./check_format.sh
bash ./check_format.sh
4 changes: 2 additions & 2 deletions check_format.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/bash
#!/bin/bash

check_diff() {
local status=0
Expand All @@ -12,4 +12,4 @@ check_diff() {

export -f check_diff

find . -type f \( -name "*.cpp" -o -name "*.hpp" \) ! -path "./build-env/*" ! -path "./.*" -exec sh -c 'check_diff "$@"' sh {} +
find . -type f \( -name "*.cpp" -o -name "*.hpp" \) ! -path "./build-env/*" ! -path "./.*" -exec bash -c 'check_diff "$@"' sh {} +

0 comments on commit 7ed340c

Please sign in to comment.