1
0

pre-push.sh 339 B

12345678910111213141516171819
  1. #!/bin/bash
  2. #
  3. #
  4. # Our "pre-push" hook.
  5. RESULT=0
  6. if [ -d ./fips ];
  7. then
  8. echo "\n\nTesting with FIPS release code...\n\n"
  9. ./fips-check.sh
  10. RESULT=$?
  11. [ $RESULT -ne 0 ] && echo -e "\n\nFIPS build test failed" && exit 1
  12. fi
  13. [ $RESULT -ne 0 ] && echo "\nOops, your push failed\n" && exit 1
  14. echo "\nPush tests passed!\n"
  15. exit 0