We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ecf62fb commit fd97d87Copy full SHA for fd97d87
protoc/private/mirror_protoc_release.sh
@@ -70,9 +70,9 @@ python3 -c "import json; exec(open('$VERSIONS_BZL').read()); print(json.dumps(PR
70
71
# Locate the PROTOC_VERSIONS declaration in the source file and replace it with a merge of both data sources
72
NEW=$(mktemp)
73
-sed '/PROTOC_VERSIONS =/Q' $VERSIONS_BZL > $NEW
+awk '/PROTOC_VERSIONS =/ {exit} {print}' $VERSIONS_BZL > $NEW
74
echo -n "PROTOC_VERSIONS = " >> $NEW
75
-jq --slurp '.[0] * .[1]' $NEW_VERSION $EXISTING_VERSIONS >> $NEW
+jq --slurp '.[1] * .[0]' $NEW_VERSION $EXISTING_VERSIONS >> $NEW
76
cp $NEW $VERSIONS_BZL
77
78
echo "Done, see updates in $VERSIONS_BZL"
0 commit comments