您最多能選擇 25 個主題
主題必須以字母或數字為開頭,可包含連接號「-」且最長為 35 個字元。
17 行
260 B
17 行
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
|