File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
- # This script will generate a temporary file with all the ssh keys of the
3
- # approvers of a given team name in the OWNERS_ALIASES file of a given project.
4
- # The script will return the path of the temporary file.
2
+ # This script returns the ssh keys of the approvers of a given team name in the
3
+ # OWNERS_ALIASES file of a given project.
5
4
# The script will return 1 if the script fails to curl the OWNER_ALIASES file
6
5
# or if the yq command is not found.
7
6
@@ -23,11 +22,8 @@ if [ -z "$OWNER_ALIASES" ]; then
23
22
fi
24
23
25
24
# shellcheck disable=SC2016
26
- MEMBERS=$( echo " $OWNER_ALIASES " | yq --arg team_name " $TEAM_NAME " -r ' .aliases[$team_name] | join(" ")' )
25
+ MEMBERS=$( yq --arg team_name " $TEAM_NAME " -r ' .aliases[$team_name] | join(" ")' <<< " $OWNER_ALIASES " )
27
26
28
- TMP_FILE=$( mktemp)
29
27
for member in $MEMBERS ; do
30
- curl -s " https://github.com/$member .keys" >> " $TMP_FILE "
28
+ curl -s " https://github.com/$member .keys"
31
29
done
32
-
33
- echo " $TMP_FILE "
You can’t perform that action at this time.
0 commit comments