fix(pokeget-rs): Change update script to JSON array (#3826) (#3833)

Signed-off-by: Gilver <rockgrub@disroot.org>
(cherry picked from commit 38bcaa726a)

Co-authored-by: Gilver <rockgrub@disroot.org>
This commit is contained in:
Raboneko
2025-03-08 23:10:54 -08:00
committed by GitHub
parent bbe5b0bbd6
commit 31f41758f9
+2 -2
View File
@@ -2,7 +2,7 @@ rpm.version(crates("pokeget"));
// pokesprites has not received an update in years but let's keep the dep commit current just in case
if rpm.changed () {
let url = `https://api.github.com/repos/talwat/pokeget-rs/contents/data`;
let json = get(url).json();
let c = json.2.sha;
let json = get(url).json_arr();
let c = json[2].sha;
rpm.global("pcommit", c);
}