mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
Ruby should work now
This commit is contained in:
parent
dd004c2ee5
commit
f123e64c25
4 changed files with 63 additions and 4 deletions
19
scripts/__rvm-env.sh
Executable file
19
scripts/__rvm-env.sh
Executable file
|
|
@ -0,0 +1,19 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
if [ $# -ne 1 ] || [ $1 = "--help" ] || [ $1 = "-h" ]; then
|
||||
echo "usage: $0 RVM_ENV_DIR [--help]"
|
||||
echo " RVM_ENV_DIR - Directory to create rvm environment in"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
||||
# Get the rvm installer. This is a known version that works reasonably well
|
||||
RVM_INSTALLER=https://raw.github.com/wayneeseguin/rvm/d80282de1f2b2b1ff51740e05d9f5d84ebf3209f/binscripts/rvm-installer
|
||||
|
||||
env_dir=$1
|
||||
mkdir "$env_dir" || exit 1
|
||||
full_env_dir=`pwd`"/$env_dir"
|
||||
|
||||
|
||||
\curl -L "$RVM_INSTALLER" | HOME=$full_env_dir bash -s -- stable --user-install --ignore-dotfiles || exit 1
|
||||
bash -c '. '"$env_dir"'/.rvm/scripts/rvm && rvm install ruby' || exit 1
|
||||
Loading…
Add table
Add a link
Reference in a new issue