Vous ne pouvez pas sélectionner plus de 25 sujets
Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
15 lignes
248 B
15 lignes
248 B
#!/bin/sh
|
|
|
|
REPOSRC=$1
|
|
LOCALREPO=$2
|
|
|
|
# We do it this way so that we can abstract if from just git later on
|
|
LOCALREPO_VC_DIR=$LOCALREPO/.git
|
|
|
|
if [ ! -d $LOCALREPO_VC_DIR ]
|
|
then
|
|
git clone $REPOSRC $LOCALREPO
|
|
else
|
|
cd $LOCALREPO
|
|
git pull $REPOSRC
|
|
fi
|
|
|