Scripts to update pyenv/rbenv
This commit is contained in:
parent
88cee262f7
commit
29ed27068c
17
scripts/_setup_pyenv.sh
Executable file
17
scripts/_setup_pyenv.sh
Executable file
|
@ -0,0 +1,17 @@
|
|||
#!/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
|
17
scripts/_setup_rbenv.sh
Executable file
17
scripts/_setup_rbenv.sh
Executable file
|
@ -0,0 +1,17 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Define the repository URL and the directory name
|
||||
REPO_URL="https://github.com/rbenv/rbenv.git"
|
||||
DIR_NAME="$HOME/.rbenv"
|
||||
|
||||
echo "=== Setting up rbenv ==="
|
||||
|
||||
# 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
|
17
scripts/_setup_ruby-build.sh
Executable file
17
scripts/_setup_ruby-build.sh
Executable file
|
@ -0,0 +1,17 @@
|
|||
#!/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
|
0
scripts/macos_bootstrap.sh
Normal file → Executable file
0
scripts/macos_bootstrap.sh
Normal file → Executable file
5
scripts/setup_env_managers.sh
Executable file
5
scripts/setup_env_managers.sh
Executable file
|
@ -0,0 +1,5 @@
|
|||
#!/usr/bin/env -S bash -i
|
||||
|
||||
bash "$(dirname "$0")/_setup_pyenv.sh"
|
||||
bash "$(dirname "$0")/_setup_rbenv.sh"
|
||||
bash "$(dirname "$0")/_setup_ruby-build.sh"
|
Loading…
Reference in New Issue
Block a user