mirror of
https://github.com/terrapkg/packages.git
synced 2026-05-31 09:01:55 +00:00
fix(pokeget-rs): Change update script to JSON array (#3826)
Signed-off-by: Gilver <rockgrub@disroot.org>
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user