21 lines
559 B
Bash
21 lines
559 B
Bash
#!/usr/bin/env bash
|
|
set -euxo pipefail
|
|
|
|
DOWNLOAD_URL=https://github.com/astral-sh/uv/releases/download
|
|
UV_VERSION=0.9.17
|
|
|
|
cd /tmp
|
|
|
|
curl --silent --location \
|
|
${DOWNLOAD_URL}/${UV_VERSION}/uv-x86_64-unknown-linux-gnu.tar.gz \
|
|
--output uv-x86_64-unknown-linux-gnu.tar.gz
|
|
curl --silent --location \
|
|
${DOWNLOAD_URL}/${UV_VERSION}/uv-x86_64-unknown-linux-gnu.tar.gz.sha256 \
|
|
| sha256sum --check
|
|
|
|
tar --extract --strip=1 --file uv-x86_64-unknown-linux-gnu.tar.gz --directory /usr/local/bin
|
|
|
|
chown ghost:ghost /usr/local/bin/uv*
|
|
|
|
chmod +x /usr/local/bin/uv*
|