Skip to content

Commit

Permalink
Be more explicit about clang-format version (#91)
Browse files Browse the repository at this point in the history
* Be more explicit about clang-format version

* Fall back to clang-format if v14 is not available
  • Loading branch information
EmilyBourne authored Feb 13, 2025
1 parent 9554f7e commit 096add3
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion bin/indent
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,18 @@ else
RUN_IF_OK='true'
fi

CLANG_FORMAT=clang-format
if [ "$(hostname)" == "persee.partenaires.cea.fr" ]
then
CLANG_FORMAT=/data/gyselarunner/clang-format
else
CLANG_FORMAT=clang-format-14
set +e
if ! command -v ${CLANG_FORMAT} 2>&1 >/dev/null
then
CLANG_FORMAT=clang-format
echo "Could not find clang-format v14. Clang-formatting may not behave as expected"
fi
set -e
fi

${DOCKER_COMMAND} find \
Expand Down

0 comments on commit 096add3

Please sign in to comment.