Skip to content

Commit

Permalink
#363: fix check_guards.sh script to run on entire repo
Browse files Browse the repository at this point in the history
  • Loading branch information
cwschilly committed Sep 17, 2024
1 parent c981ef0 commit f34cde6
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions scripts/check_guards.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,7 @@ path_to_magistrate=${1}
show_fix_command=${2}
cd "$path_to_magistrate" || exit 1

for sub_dir in "src" "tests" "examples"
do
python3 "${path_to_magistrate}/scripts/generate_header_guards_and_license.py" -s=${sub_dir} -l="${path_to_magistrate}/scripts/license-template"
done
python3 "${path_to_magistrate}/scripts/generate_header_guards_and_license.py" -s="${path_to_magistrate}" -l="${path_to_magistrate}/scripts/license-template"

# Check for modified files
modified_files=$(git ls-files -m)
Expand Down

0 comments on commit f34cde6

Please sign in to comment.