soiz1 commited on
Commit
83af368
·
verified ·
1 Parent(s): c92ce3d

Update upload.sh

Browse files
Files changed (1) hide show
  1. upload.sh +4 -1
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
- # Initialize repo if not already
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"