#!/bin/bashfunction abort(){echo"Your commit not fit PaddlePaddle code style" 1>&2echo"Please use pre-commit scripts to auto-format your code" 1>&2exit 1}trap'abort' 0set-ecd`dirname$0`cd ..export PATH=/usr/bin:$PATHpre-commit installif! pre-commit run -a;thengit diff --exit-codefitrap : 0