Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 11 additions & 8 deletions scripts/pre-commit.hook
Original file line number Diff line number Diff line change
Expand Up @@ -235,17 +235,20 @@ for file in $C_FILES; do
done

# format string checks
if [ ! -f fmtscan ]; then
if [[ "$OSTYPE" != darwin* ]]; then
# Format string checks
if [ ! -f fmtscan ]; then
make fmtscan
if [ ! -f fmtscan ]; then
throw "Fail to build 'fmtscan' tools"
throw "Fail to build 'fmtscan' tool"
fi
fi
if [ -n "$C_FILES" ]; then
echo "Running fmtscan..."
./fmtscan
if [ $? -ne 0 ]; then
throw "Check format strings for spelling"
fi
fi
if [ -n "$C_FILES" ]; then
echo "Running fmtscan..."
./fmtscan
if [ $? -ne 0 ]; then
throw "Check format strings for spelling"
fi
fi

Expand Down