mov
This commit is contained in:
parent
41861cb4d3
commit
f52d7f0403
1 changed files with 4 additions and 12 deletions
16
app.sh
16
app.sh
|
@ -40,18 +40,10 @@ while true ; do
|
||||||
git config --global user.email "$GIT_USER_MAIL"
|
git config --global user.email "$GIT_USER_MAIL"
|
||||||
git config --global user.name "$GIT_USERNAME"
|
git config --global user.name "$GIT_USERNAME"
|
||||||
|
|
||||||
if [ -d "$GIT_REPO_PATH" ] ; then
|
echo clone
|
||||||
cd "$GIT_REPO_PATH"
|
pwd
|
||||||
if [ -d ".git" ] ; then
|
git clone "$GIT_REPO_URL" "$GIT_REPO_PATH" --quiet
|
||||||
echo pull
|
cd "$GIT_REPO_PATH"
|
||||||
pwd
|
|
||||||
git pull "$GIT_REPO_REMOTE_NAME" "$GIT_REPO_BRANCH" --quiet
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
echo clone
|
|
||||||
pwd
|
|
||||||
git clone "$GIT_REPO_URL" "$GIT_REPO_PATH" --quiet
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Save the current value of IFS to restore later
|
# Save the current value of IFS to restore later
|
||||||
OLD_IFS=$IFS
|
OLD_IFS=$IFS
|
||||||
|
|
Loading…
Reference in a new issue