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.

16 lines
248B

  1. #!/bin/sh
  2. REPOSRC=$1
  3. LOCALREPO=$2
  4. # We do it this way so that we can abstract if from just git later on
  5. LOCALREPO_VC_DIR=$LOCALREPO/.git
  6. if [ ! -d $LOCALREPO_VC_DIR ]
  7. then
  8. git clone $REPOSRC $LOCALREPO
  9. else
  10. cd $LOCALREPO
  11. git pull $REPOSRC
  12. fi