We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 77d8deb + fa60ee9 commit 59b5363Copy full SHA for 59b5363
scripts/pre-commit.hook
@@ -235,17 +235,20 @@ for file in $C_FILES; do
235
done
236
237
# format string checks
238
-if [ ! -f fmtscan ]; then
+if [[ "$OSTYPE" != darwin* ]]; then
239
+ # Format string checks
240
+ if [ ! -f fmtscan ]; then
241
make fmtscan
242
if [ ! -f fmtscan ]; then
- throw "Fail to build 'fmtscan' tools"
243
+ throw "Fail to build 'fmtscan' tool"
244
+ fi
245
246
+ if [ -n "$C_FILES" ]; then
247
+ echo "Running fmtscan..."
248
+ ./fmtscan
249
+ if [ $? -ne 0 ]; then
250
+ throw "Check format strings for spelling"
251
fi
-fi
-if [ -n "$C_FILES" ]; then
- echo "Running fmtscan..."
- ./fmtscan
- if [ $? -ne 0 ]; then
- throw "Check format strings for spelling"
252
253
254
0 commit comments