25개 이상의 토픽을 선택하실 수 없습니다.
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
260 B
17 lines
260 B
3 년 전
|
#!/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
|