Advertisement
SyP-

git cloner

Jun 30th, 2020
226
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.33 KB | None | 0 0
  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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement