Skip to content

Commit

Permalink
Quote restrictedto role, it can be multi-word
Browse files Browse the repository at this point in the history
  • Loading branch information
stronk7 committed Jun 4, 2022
1 parent a0bb7f8 commit 975e856
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -144,11 +144,11 @@ while read issue; do
# Execute the criteria postissue. It will perform the needed changes in the tracker for the current issue
if [[ ${quiet} == "false" ]]; then
# Let's see if there is any restriction to the comment in the Tracker
commentrestriction=
restrictiontype=
if [[ -n "${restrictedto}" ]]; then
commentrestriction="--role $restrictedto"
restrictiontype=--role
fi
echo " - Sending results to the Tracker"
echo " - Sending results to the Tracker (${restrictiontype} ${restrictedto})"
. "${mydir}/criteria/${criteria}/postissue.sh"
fi
done < "${resultfile}"
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Add the comment with results.
echo "${commentrestriction}"
${basereq} --action addComment \
--issue ${issue} \
--file "${resultfile}.${issue}.txt" ${commentrestriction}
--file "${resultfile}.${issue}.txt" ${restrictiontype} "${restrictedto}"

0 comments on commit 975e856

Please sign in to comment.