mirror of
https://github.com/terrapkg/packages.git
synced 2026-05-31 09:01:55 +00:00
(cherry picked from commit 7e6c8e50a4)
# Conflicts:
# anda/langs/crystal/crystal/update.rhai
Co-authored-by: madomado <madonuko@outlook.com>
This commit is contained in:
@@ -1 +1,9 @@
|
||||
rpm.version(gh("crystal-lang/crystal"));
|
||||
let v = gh("crystal-lang/crystal");
|
||||
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);
|
||||
} else {
|
||||
print(`crystal: ${v} (waiting for bundle)`);
|
||||
terminate();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user