File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ krew: dist/kubectl-neat_darwin.tar.gz dist/kubectl-neat_linux.tar.gz dist/checks
4343 yq r --tojson " dist/kubectl-neat_linux.yaml" > dist/linux.json
4444 rm dist/kubectl-neat_darwin.yaml dist/kubectl-neat_linux.yaml
4545 jq --slurp ' .[0].spec.platforms += .[1].spec.platforms | .[0]' ' dist/darwin.json' ' dist/linux.json' > ' dist/kubectl-neat.json'
46- yq r dist/kubectl-neat.json > dist/kubectl-neat.yaml
46+ yq r --prettyPrint dist/kubectl-neat.json > dist/kubectl-neat.yaml
4747 rm dist/kubectl-neat.json dist/darwin.json dist/linux.json
4848
4949clean :
Original file line number Diff line number Diff line change @@ -16,5 +16,5 @@ yq r --tojson krew-template.yaml >"$tmp"
1616jq ' delpaths([path(.spec.platforms[] | select( .selector.matchLabels.os != $os ))])' --arg os " $os " " $tmp " | sponge " $tmp "
1717jq ' .metadata.name = $name' --arg name " $plugin " " $tmp " | sponge " $tmp "
1818jq ' setpath(path(.spec.platforms[] | select( .selector.matchLabels.os == $os ) | .sha256); $sha)' --arg os " $os " --arg sha " $sha256 " " $tmp " | sponge " $tmp "
19- yq r " $tmp " > " ${tmp% .json} .yaml"
19+ yq r --prettyPrint " $tmp " > " ${tmp% .json} .yaml"
2020rm " $tmp "
You can’t perform that action at this time.
0 commit comments