arch-install/scripts/_setup_ruby-build.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
447 B
Bash
Executable File

#!/bin/bash
# Define the repository URL and the directory name
REPO_URL="https://github.com/rbenv/ruby-build.git "
DIR_NAME="$HOME/.rbenv/plugins/ruby-build"
echo "=== Setting up ruby-build ==="
# 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