1 2 3 4 5 6 7 8 9 10 11 12
#!/usr/bin/env bash basedir=$(dirname $(readlink -f ${BASH_SOURCE[0]})) path="${basedir}/pre-build.patch" git apply --check "${path}" ret=$? if [[ $ret -ne 0 ]]; then exit "${ret}" fi git apply "${path}" ret=$? exit $ret