Non puoi selezionare più di 25 argomenti
Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
17 righe
260 B
17 righe
260 B
3 anni fa
|
#!/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
|
||
|
|
||
|
cd builders
|
||
|
if [ ! -d $LOCALREPO_VC_DIR ]
|
||
|
then
|
||
|
git clone $REPOSRC $LOCALREPO
|
||
|
else
|
||
|
cd $LOCALREPO
|
||
|
git pull $REPOSRC
|
||
|
fi
|