Skip to content

Commit d2c28e3

Browse files
committed
fix(requests): use an multi-platform extension
1 parent edc5122 commit d2c28e3

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

haskell/requests.sh

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -72,12 +72,15 @@ EOF
7272

7373
mkdir -p tmp
7474

75-
getReleaseVersions "github.copilot" "tmp/copilot.versions.json"
76-
jq -M . tmp/copilot.versions.json > tmp/formatted
77-
cat tmp/formatted > tmp/copilot.versions.json
75+
publisher="AdaCore"
76+
name="ada"
7877

79-
getLatestVersion "github.copilot" "tmp/copilot.latest.json"
80-
jq -M . tmp/copilot.latest.json > tmp/formatted
81-
cat tmp/formatted > tmp/copilot.latest.json
78+
getReleaseVersions "${publisher}.${name}" "tmp/${name}.versions.json"
79+
jq -M . tmp/${name}.versions.json > tmp/formatted
80+
cat tmp/formatted > tmp/${name}.versions.json
81+
82+
getLatestVersion "${publisher}.${name}" "tmp/${name}.latest.json"
83+
jq -M . tmp/${name}.latest.json > tmp/formatted
84+
cat tmp/formatted > tmp/${name}.latest.json
8285

8386
rm tmp/formatted

0 commit comments

Comments
 (0)