diff --git a/pre-commit.sh b/pre-commit.sh index 3413e954a..14372920d 100755 --- a/pre-commit.sh +++ b/pre-commit.sh @@ -6,6 +6,7 @@ # save current config echo "\n\nSaving current config\n\n" cp config.status tmp.status +cp cyassl/options.h tmp.options.h # stash modified files not part of this commit, don't test them echo "\n\nStashing any modified files not part of commit\n\n" @@ -27,6 +28,7 @@ mv tmp.status config.status ./config.status >/dev/null 2>&1 make clean >/dev/null 2>&1 make -j 8 >/dev/null 2>&1 +mv tmp.options.h cyassl/options.h [ $RESULT -ne 0 ] && echo "\nOops, your commit failed\n" && exit 1