summaryrefslogtreecommitdiff
path: root/automation/clang-format/run_clang_format.sh
diff options
context:
space:
mode:
Diffstat (limited to 'automation/clang-format/run_clang_format.sh')
-rwxr-xr-xautomation/clang-format/run_clang_format.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/automation/clang-format/run_clang_format.sh b/automation/clang-format/run_clang_format.sh
index 50d4eead7..9f2b20db6 100755
--- a/automation/clang-format/run_clang_format.sh
+++ b/automation/clang-format/run_clang_format.sh
@@ -13,7 +13,7 @@ set -e
# Any differences between formatted and unformatted files is printed to stdout to give a hint what's wrong.
# Includes a default set of directories NOT to clang-format on.
-blacklist=(
+blocklist=(
"./automation" \
"./coreconf" \
"./doc" \
@@ -37,8 +37,8 @@ fi
format_folder()
{
- for black in "${blacklist[@]}"; do
- if [[ "$1" == "$black"* ]]; then
+ for block in "${blocklist[@]}"; do
+ if [[ "$1" == "$block"* ]]; then
echo "skip $1"
return 1
fi
@@ -65,4 +65,4 @@ if [[ -d "$top/.hg" ]]; then
else
git -C "$top" diff | tee $TMPFILE
fi
-[[ ! -s $TMPFILE ]] \ No newline at end of file
+[[ ! -s $TMPFILE ]]