Update start_server.sh
Browse files- start_server.sh +2 -4
start_server.sh
CHANGED
@@ -23,11 +23,9 @@ if [[ ! -z "$REPO" ]]; then
|
|
23 |
cd $dir
|
24 |
git config --global user.name "$(git log -1 --pretty=format:'%an')"
|
25 |
git config --global user.email "$(git log -1 --pretty=format:'%ae')"
|
26 |
-
cd ..
|
27 |
-
else
|
28 |
-
git config --global user.name "$SPACE_AUTHOR_NAME"
|
29 |
-
git config --global user.email "[email protected]"
|
30 |
fi
|
|
|
|
|
31 |
|
32 |
git config --global http.postBuffer 524288000
|
33 |
git config push.default current
|
|
|
23 |
cd $dir
|
24 |
git config --global user.name "$(git log -1 --pretty=format:'%an')"
|
25 |
git config --global user.email "$(git log -1 --pretty=format:'%ae')"
|
|
|
|
|
|
|
|
|
26 |
fi
|
27 |
+
[[ -z $(git config --global user.name) ]] && git config --global user.name "$SPACE_AUTHOR_NAME"
|
28 |
+
[[ -z $(git config --global user.email) ]] && git config --global user.email "[email protected]"
|
29 |
|
30 |
git config --global http.postBuffer 524288000
|
31 |
git config push.default current
|