Skip to content

Commit

Permalink
fix(update): crystal (#1522)
Browse files Browse the repository at this point in the history
Signed-off-by: madomado <[email protected]>
  • Loading branch information
madonuko authored Jul 13, 2024
1 parent 1aaacb5 commit d0662be
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion anda/langs/crystal/crystal/update.rhai
Original file line number Diff line number Diff line change
@@ -1 +1,9 @@
rpm.version(gh("crystal-lang/crystal"));
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);
rpm.version(v);
} except {
print(`crystal: ${v} (waiting for bundle)`);
terminate();
}

0 comments on commit d0662be

Please sign in to comment.