mirrors.sh 310 B

123456789101112131415161718
  1. #!/bin/sh
  2. defaultPath=./src/hello-world
  3. defaultRepo=https://github.com/leachim6/hello-world.git
  4. src=plugins
  5. clonefile=mirror-repos.sh
  6. clonepath=${src}/${clonefile}
  7. username=${1:-""}
  8. if [ -e ${clonepath} ] ; then
  9. ${clonepath} ${username}
  10. else
  11. ./make/mirror-repo.sh ${defaultPath} ${defaultRepo}
  12. fi