Spaces:
Running
Running
Update upload.sh
Browse files
upload.sh
CHANGED
@@ -6,10 +6,13 @@ if [ -z "$sc4sc_token" ]; then
|
|
6 |
exit 1
|
7 |
fi
|
8 |
|
|
|
|
|
|
|
9 |
SPACE_REPO="sc4sc/editor"
|
10 |
GIT_URL="https://[email protected]/spaces/$SPACE_REPO"
|
11 |
|
12 |
-
#
|
13 |
if [ ! -d ".git" ]; then
|
14 |
git init
|
15 |
git remote add origin "$GIT_URL"
|
|
|
6 |
exit 1
|
7 |
fi
|
8 |
|
9 |
+
# Gitが安全と認識するようにする(必要最低限の変更)
|
10 |
+
git config --global --add safe.directory /app
|
11 |
+
|
12 |
SPACE_REPO="sc4sc/editor"
|
13 |
GIT_URL="https://[email protected]/spaces/$SPACE_REPO"
|
14 |
|
15 |
+
# Gitリポジトリが未初期化なら初期化
|
16 |
if [ ! -d ".git" ]; then
|
17 |
git init
|
18 |
git remote add origin "$GIT_URL"
|