arch-install/scripts/_setup_pyenv.sh
Ariejan de Vroom 29ed27068c
Some checks failed
Lint / Lint (3.10) (push) Failing after 22s
Lint / Lint (3.11) (push) Failing after 19s
Scripts to update pyenv/rbenv
2024-08-30 11:24:39 +02:00

17 lines
417 B
Bash
Executable File

#!/bin/bash
# Define the repository URL and the directory name
REPO_URL="https://github.com/pyenv/pyenv.git"
DIR_NAME="$HOME/.pyenv"
echo "=== Setting up pyenv ==="
# Check if the directory exists
if [ -d "$DIR_NAME" ]; then
echo "Directory $DIR_NAME exists. Pulling latest changes..."
cd "$DIR_NAME"
git pull
else
echo "Directory $DIR_NAME does not exist. Cloning repository..."
git clone "$REPO_URL"
fi