OpenRCT2/scripts/check-code-formatting
Margen67 2e8c16e028 Change shebang to env
Move parameters from shebang back into set.
Add set -e to setenv and vstool for consistency.
2022-03-16 18:21:11 -07:00

19 lines
413 B
Bash
Executable file

#!/usr/bin/env sh
set -e
readlink_bin='readlink'
if [ "$(uname)" == "Darwin" ]; then
if ! [ -x "$(command -v greadlink)" ]; then
echo 'Please install greadlink with Homebrew: brew install coreutils'
exit 1
fi
readlink_bin='greadlink'
fi
# Ensure we are in root directory
basedir="$($readlink_bin -f `dirname $0`/..)"
cd $basedir
scripts/run-clang-format.py -r src test --exclude src/thirdparty