We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f893c04 commit 81864f2Copy full SHA for 81864f2
.github/actions/infra-repo-update/action.yaml
@@ -22,15 +22,14 @@ runs:
22
shell: bash
23
run: |
24
if [[ -f pkg.conf.template ]]; then
25
- if [[ "${{ inputs.test-repo }}" == "true" ]]
+ grep_arg=()
26
+ if [[ "${{ inputs.test-repo }}" != "true" ]]
27
then
- grep_arg=""
28
- else
29
- grep_arg="-v"
+ grep_arg+=("-v")
30
fi
31
repo_suffix=""
32
supported_distros=()
33
- mapfile -t supported_distros < <(jq -er '."*".Releases[]' pkg.conf.template | grep "$grep_arg" -- -test)
+ mapfile -t supported_distros < <(jq -er '."*".Releases[]' pkg.conf.template | grep "${grep_arg[@]}" -- -test)
34
else
35
if [[ "${{ inputs.test-repo }}" == "true" ]]
36
0 commit comments