fix(update): crystal (#1571)

This commit is contained in:
madomado
2024-07-20 13:14:36 +08:00
committed by GitHub
parent 4a8ce403d0
commit 7e6c8e50a4
+4 -4
View File
@@ -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();
}