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.

builders-update.sh 260B

12345678910111213141516
  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. cd builders
  7. if [ ! -d $LOCALREPO_VC_DIR ]
  8. then
  9. git clone $REPOSRC $LOCALREPO
  10. else
  11. cd $LOCALREPO
  12. git pull $REPOSRC
  13. fi