SyP-

git cloner

Jun 30th, 2020
123
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/bash
  2.  
  3. echo ""
  4. echo "Easy repo cloner by syp"
  5. echo ""
  6.  
  7.  
  8. REPONAME=$(echo $1 | sed -e 's/\(^.*\/\)\(.*\)\(.git*$\)/\2/')
  9.  
  10. echo ""
  11. echo "Nombre de grupo (en blanco para omitir)"
  12. echo ""
  13. read NAMEGROUP
  14.  
  15.  
  16. if test -z "$NAMEGROUP"
  17. then
  18.     git clone $1 $REPONAME\ \(git\)
  19. else
  20.     git clone $1 $NAMEGROUP\ $REPONAME\ \(git\)
  21. fi
RAW Paste Data