File size: 394 Bytes
e954acb
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/bash

# Exit on any error
set -e

# Function to check if a command exists
command_exists() {
    command -v "$1" >/dev/null 2>&1
}

# 1. Check if 'uv' is installed
if ! command_exists uv; then
    echo "'uv' is not installed. Installing 'uv'..."
    # Install 'uv'
    curl -LsSf https://astral.sh/uv/install.sh | sh
    source ~/.cargo/env
else
    echo "'uv' is already installed."
fi