diff --git a/.github/change_repo_manager.sh b/.github/change_repo_manager.sh index 739f42c1eb4..5f73a6c2946 100755 --- a/.github/change_repo_manager.sh +++ b/.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"