Skip to content

Commit e1fca29

Browse files
authored
versions.txt
1 parent 3ccc339 commit e1fca29

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/config.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ function git_create_pr(){ # git_create_pr <branch> <title>
177177
local pr_title="$2"
178178
local pr_target="$3"
179179
local pr_body=""
180-
pr_body+="\`\`\`\r\n"$(cat "$AR_TOOLS/esp32-arduino-libs/versions.txt")"\r\n\`\`\`\r\n"
180+
while read -r line; do pr_body+=$line"\r\n"; done < "$AR_TOOLS/esp32-arduino-libs/versions.txt"
181181
local pr_data="{\"title\": \"$pr_title\", \"body\": \"$pr_body\", \"head\": \"$AR_USER:$pr_branch\", \"base\": \"$pr_target\"}"
182182
git_create_pr_res=`echo "$pr_data" | curl -k -H "Authorization: token $GITHUB_TOKEN" -H "Accept: application/vnd.github.v3.raw+json" --data @- "https://api.github.com/repos/$AR_REPO/pulls"`
183183
local done_pr=`echo "$git_create_pr_res" | jq -r '.title'`

0 commit comments

Comments
 (0)