Skip to content

Commit 3e7fac9

Browse files
committed
Exclude string_map.hpp from autoformat.
1 parent 9597b96 commit 3e7fac9

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

tools/format_code.sh

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
#!/bin/bash
1+
#!/bin/bash
22

33
[[ ! $(clang-format --version) ]] && exit 1
44

5-
exclude_list="scene_switcher.hpp"
5+
exclude_list="scene_switcher.hpp string_map.hpp"
66

77
script_path=${0%/*}
88
tools_root=${script_path%/*}
@@ -15,11 +15,14 @@ fi
1515

1616
exclude_cmd=
1717
for exclude in $exclude_list; do
18-
exclude_cmd+="! -name $exclude"
18+
exclude_cmd+="! -name $exclude "
1919
done
2020

2121
files=$(find src/spaced src/android/app/src/main src/desktop -name "*.?pp" $exclude_cmd)
2222

23+
echo -e "files: $files"
24+
exit 0
25+
2326
if [[ "$files" == "" ]]; then
2427
echo "-- No source files found"
2528
exit

0 commit comments

Comments
 (0)