Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

executable file 34 lines (26 sloc) 0.626 kb
#!/usr/bin/env bash
declare rvm_verbose_flag rvm_debug_flag rvm_hook
true ${rvm_verbose_flag:=0} ${rvm_debug_flag:=0} "${rvm_hook:=}"
if [[ -n "$rvm_hook" ]]
then
if [[ "$PWD/.rvm/hooks/$rvm_hook" = "$rvm_hooks_path/$rvm_hook" ]]
then
hooks=( "$rvm_hooks_path/$rvm_hook")
else
hooks=("$PWD/.rvm/hooks/$rvm_hook" "$rvm_hooks_path/$rvm_hook")
fi
for hook in "${hooks[@]}"
do
if [[ -s "$hook" ]]
then
if (( rvm_verbose_flag > 0 )) || (( rvm_debug_flag > 0 ))
then
rvm_log "Running $hook"
fi
source "$hook"
else
continue
fi
done
fi
unset rvm_hook
Jump to Line
Something went wrong with that request. Please try again.