Browse Source

Support MAC

Esun Kim 4 năm trước cách đây
mục cha
commit
8c3432aac2
1 tập tin đã thay đổi với 4 bổ sung2 xóa
  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"