Ein für Shopware 6 vorbereitet Systemmanagment.
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.

61 lines
1.1 KiB

  1. #!/bin/bash
  2. ### DO NOT EDIT THIS FILE
  3. function usage {
  4. echo
  5. echoMainTitle "Clone repository"
  6. echo
  7. echoSubTitle "Usage:"
  8. echo
  9. echo "project-manager git:clone [project-shortname]"
  10. echo
  11. echo "--help Prints this message"
  12. echo
  13. }
  14. source "$project_manager_dir/bin/includes/project_header"
  15. gitValidate
  16. if [ "$git_url" == "" ]
  17. then
  18. echo
  19. echoError "There is no git url configured"
  20. echo
  21. exit
  22. fi
  23. echo
  24. echoMainTitle "Cloning Repository"
  25. echo
  26. echoSubTitle "Please confirm following data"
  27. echo
  28. if [ "$git_ssh_private_key" != "" ]
  29. then
  30. echo "SSH Private Key File: $git_ssh_public_key"
  31. fi
  32. if [ "$git_ssh_public_key" != "" ]
  33. then
  34. echo "SSH Public Key File: $git_ssh_public_key"
  35. fi
  36. echo "GIT Url: $git_url"
  37. echo "GIT User: $git_ssh_user"
  38. echo "GIT Domain: $git_ssh_domain"
  39. echo "Install Location: $workspaces_dir/$customer/$project"
  40. echo
  41. confirm
  42. if [ ! -d "$workspaces_dir/$customer/$project" ]
  43. then
  44. echo
  45. echoError "Wprkspace dir not exists"
  46. echo
  47. exit
  48. fi
  49. sshAddKey "git"
  50. git clone "$git_url" "$workspaces_dir/$customer/$project"
  51. echo
  52. echoSuccess "GIT cloned"
  53. echo