Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

29 строки
467B

  1. #!/bin/sh
  2. is_reposilite_up ()
  3. {
  4. curl -s -o /dev/null repo:80
  5. return $?
  6. }
  7. i=0
  8. until is_reposilite_up; do
  9. i=$((i+1))
  10. if [ $i -gt 30 ]; then
  11. echo "Could not connect to reposilite. Aborting."
  12. exit 1
  13. fi
  14. sleep 1
  15. done
  16. if [ $? -lt 30 ]; then
  17. for pom in /poms/*; do
  18. mvn -P central -Dos.detected.classifier=linux-x86_64 -f $pom dependency:go-offline;
  19. done
  20. else
  21. echo "Can't connect to repository"
  22. exit 255
  23. fi