diff --git a/install/uv.sh b/install/uv.sh new file mode 100755 index 0000000..7490c82 --- /dev/null +++ b/install/uv.sh @@ -0,0 +1,8 @@ +#!/bin/bash + +set -E -o errexit -o nounset -o pipefail +set -x + +curl -LsSf https://astral.sh/uv/install.sh | sh +source "$HOME/.cargo/env" +uv --version diff --git a/rc.local/cargo.sh b/rc.local/cargo.sh index 3e31ed9..2d000a9 100644 --- a/rc.local/cargo.sh +++ b/rc.local/cargo.sh @@ -1,3 +1,3 @@ -if [[ -d "$HOME/.cargo/env" ]]; then +if [[ -f "$HOME/.cargo/env" ]]; then source "$HOME/.cargo/env" fi