Skip to content

Commit 975e856

Browse files
committed
Quote restrictedto role, it can be multi-word
1 parent a0bb7f8 commit 975e856

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

tracker_automations/bulk_prelaunch_jobs/bulk_prelaunch_jobs.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -144,11 +144,11 @@ while read issue; do
144144
# Execute the criteria postissue. It will perform the needed changes in the tracker for the current issue
145145
if [[ ${quiet} == "false" ]]; then
146146
# Let's see if there is any restriction to the comment in the Tracker
147-
commentrestriction=
147+
restrictiontype=
148148
if [[ -n "${restrictedto}" ]]; then
149-
commentrestriction="--role $restrictedto"
149+
restrictiontype=--role
150150
fi
151-
echo " - Sending results to the Tracker"
151+
echo " - Sending results to the Tracker (${restrictiontype} ${restrictedto})"
152152
. "${mydir}/criteria/${criteria}/postissue.sh"
153153
fi
154154
done < "${resultfile}"
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# Add the comment with results.
2+
echo "${commentrestriction}"
23
${basereq} --action addComment \
34
--issue ${issue} \
4-
--file "${resultfile}.${issue}.txt" ${commentrestriction}
5+
--file "${resultfile}.${issue}.txt" ${restrictiontype} "${restrictedto}"

0 commit comments

Comments
 (0)