Skip to content

Commit 154c93b

Browse files
Merge pull request #3 from magna-z/backslash_in_while
Backslash in while does not act as an escape character
2 parents 13f611d + 3ad0e56 commit 154c93b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

assets/check

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ if [ -n "$pull_requests" ]; then
9595
skip_build=false
9696
comments=$(bitbucket_pullrequest_overview_comments "$repo_host" "$repo_project" "$repo_name" "$prq_number" | jq -c '.[]')
9797
if [ -n "$comments" ]; then
98-
while read comment; do
98+
while read -r comment; do
9999
text=$(echo "$comment" | jq -r '.text')
100100

101101
# check for progress or finished messages => do not include in versions when available

assets/out

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ comments=$(bitbucket_pullrequest_overview_comments "$repo_host" "$repo_project"
148148
commented=""
149149
skip_verify=false
150150
if [ -n "$comments" ]; then
151-
while read comment; do
151+
while read -r comment; do
152152
id=$(echo "$comment" | jq -r '.id')
153153
text=$(echo "$comment" | jq -r '.text')
154154
version=$(echo "$comment" | jq -r '.version')

0 commit comments

Comments
 (0)