Skip to content

Commit

Permalink
fix(update): crystal (#1571)
Browse files Browse the repository at this point in the history
  • Loading branch information
madonuko authored Jul 20, 2024
1 parent 4a8ce40 commit 7e6c8e5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions anda/langs/crystal/crystal/update.rhai
Original file line number Diff line number Diff line change
@@ -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();
}

0 comments on commit 7e6c8e5

Please sign in to comment.