mirror of
https://github.com/terrapkg/packages.git
synced 2026-05-31 09:01:55 +00:00
fix(update): crystal (#1571)
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
let v = gh("crystal-lang/crystal");
|
||||
let url = `https://github.com/crystal-lang/crystal/releases/download/${v}/crystal-${v}-1-linux-x86_64-bundled.tar.gz`;
|
||||
try {
|
||||
find(url, get(`https://github.com/crystal-lang/crystal/releases/tag/${v}`), 0);
|
||||
let url = `crystal-${v}-1-linux-x86_64-bundled.tar.gz`;
|
||||
|
||||
if get(`https://github.com/crystal-lang/crystal/releases/expanded_assets/${v}`).contains(url) {
|
||||
rpm.version(v);
|
||||
} catch {
|
||||
} else {
|
||||
print(`crystal: ${v} (waiting for bundle)`);
|
||||
terminate();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user