Skip to content

Commit

Permalink
fix: remove unnecessary quotes from concourse script
Browse files Browse the repository at this point in the history
  • Loading branch information
favna committed Aug 10, 2024
1 parent 3ed82fd commit 29329cb
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions concourse/out
Original file line number Diff line number Diff line change
Expand Up @@ -41,19 +41,17 @@ allowed_role_mentions_options=""

allowed_roles_count=$(echo $allowed_role_mentions | jq '. | length')
if [ $allowed_roles_count -gt 0 ]; then
echo "in the if"
for i in $(seq 0 $(($allowed_roles_count - 1))); do
allowed_role_mentions_options="${allowed_role_mentions_options}$(echo "--allowed-role-mentions \"$(echo $allowed_role_mentions | jq -r ".[$i]")\" ")"
allowed_role_mentions_options="${allowed_role_mentions_options}$(echo "--allowed-role-mentions $(echo $allowed_role_mentions | jq -r ".[$i]") ")"
done
fi

allowed_user_mentions_options=""

allowed_users_count=$(echo $allowed_user_mentions | jq '. | length')
if [ $allowed_users_count -gt 0 ]; then
echo "in the if"
for i in $(seq 0 $(($allowed_users_count - 1))); do
allowed_user_mentions_options="${allowed_user_mentions_options}$(echo "--allowed-user-mentions \"$(echo $allowed_user_mentions | jq -r ".[$i]")\" ")"
allowed_user_mentions_options="${allowed_user_mentions_options}$(echo "--allowed-user-mentions $(echo $allowed_user_mentions | jq -r ".[$i]") ")"
done
fi

Expand Down

0 comments on commit 29329cb

Please sign in to comment.