VERY experimental Nintendo Switch 2 emulator
C++
hooks: convert pre-commit to POSIX syntax
Jan Beich9832ce3f40f3
diff --git a/hooks/pre-commit b/hooks/pre-commitindex ec2b5b77e8..04fdaf8ec4 100755--- a/hooks/pre-commit+++ b/hooks/pre-commit@@ -1,4 +1,4 @@-#!/bin/bash+#!/bin/sh# Enforce citra's whitespace policygit config --local core.whitespace tab-in-indent,trailing-space@@ -32,7 +32,7 @@ for f in $(git diff --name-only --diff-filter=ACMRTUXB --cached); doif ! echo "$f" | egrep -q "^src/"; thencontinuefi- d=$(diff -u "$f" <(clang-format "$f"))+ d=$(clang-format "$f" | diff -u "$f" -)if ! [ -z "$d" ]; thenecho "!!! $f not compliant to coding style, here is the fix:"echo "$d"@@ -40,4 +40,4 @@ for f in $(git diff --name-only --diff-filter=ACMRTUXB --cached); dofidone-exit "$fail"+exit "${fail-0}"