소스 검색

Support MAC

Esun Kim 4 년 전
부모
커밋
8c3432aac2
1개의 변경된 파일4개의 추가작업 그리고 2개의 파일을 삭제
  1. 4 2
      .github/change_repo_manager.sh

+ 4 - 2
.github/change_repo_manager.sh

@@ -27,9 +27,11 @@ BASE_PATH=$(dirname $0)
 
 for file in bug_report.md cleanup_request.md feature_request.md question.md
 do
-	sed -i -E "s/assignees: ([a-zA-Z0-9-]+)/assignees: $1/" $BASE_PATH/ISSUE_TEMPLATE/$file
+	sed -i".bak" -E "s/assignees: ([a-zA-Z0-9-]+)/assignees: $1/" "$BASE_PATH/ISSUE_TEMPLATE/$file"
+  rm "$BASE_PATH/ISSUE_TEMPLATE/$file.bak"
 done
 
-sed -i -E "s/^@([a-zA-Z0-9-]+)/@$1/" $BASE_PATH/pull_request_template.md
+sed -i".bak" -E "s/^@([a-zA-Z0-9-]+)/@$1/" "$BASE_PATH/pull_request_template.md"
+rm "$BASE_PATH/pull_request_template.md.bak"
 
 echo "Done"