mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
12 lines
339 B
Bash
Executable file
12 lines
339 B
Bash
Executable file
#!/usr/bin/env nix
|
|
#!nix shell --ignore-environment .#cacert .#coreutils .#curl .#bash --command bash
|
|
|
|
set -euo pipefail
|
|
|
|
cd "$(dirname "${BASH_SOURCE[0]}")"
|
|
|
|
BASE_URL="https://downloads.claude.ai/claude-code-releases"
|
|
|
|
VERSION="${1:-$(curl -fsSL "$BASE_URL/latest")}"
|
|
|
|
curl -fsSL "$BASE_URL/$VERSION/manifest.json" --output manifest.json
|