You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

34 lines
641 B

  1. #!/bin/bash
  2. RED='\033[0;31m'
  3. NOCOLOR='\033[0m'
  4. function check {
  5. cd $1
  6. git fetch origin
  7. if [[ `git rev-parse master` != `git rev-parse origin/master` ]]; then
  8. echo -e "${RED}$1 git repository is not clean${NOCOLOR}"
  9. exit 1
  10. fi
  11. cd ..
  12. }
  13. echo "Check LessPass Repositories Statuses"
  14. submodules="backend cli cordova core cozy desktop frontend move nginx pure snap webextension"
  15. for submodule in ${submodules}
  16. do
  17. check $submodule &
  18. done
  19. FAIL=0
  20. for job in `jobs -p`
  21. do
  22. wait $job || let "FAIL+=1"
  23. done
  24. if [ "$FAIL" != "0" ];
  25. then
  26. echo "One or more repositories are not clean, exiting..."
  27. exit 1
  28. fi