RETURN=0ASTYLE=$(which astyle)if[$?-ne 0 ];thenecho"[!] astyle not installed. Unable to check source file format policy.">&2exit 1fiFILES=`git diff --cached--name-only--diff-filter=ACMR | grep-E"\.(c|cpp|h)$"`for FILE in$FILES;do$ASTYLE$OPTIONS < $FILE | cmp -s$FILE -if[$?-ne 0 ];thenecho"[!] $FILE does not respect the agreed coding style.">&2RETURN=1fidoneif[$RETURN-eq 1 ];thenecho"">&2echo"Make sure you have run astyle with the following options:">&2echo$OPTIONS>&2fi