#!/bin/bashfunction abort(){echo"Your commit does 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;thenls-lh git diff --exit-codeexit 1fitrap : 0