mirror of
https://github.com/rbenv/ruby-build.git
synced 2025-01-01 14:44:48 +01:00
$PREFIX_PATH can be specified as a relative path
This commit is contained in:
parent
6a5ee00bd2
commit
20f7b5c0e9
1 changed files with 4 additions and 2 deletions
|
@ -184,11 +184,13 @@ elif [ ! -e "$DEFINITION_PATH" ]; then
|
|||
fi
|
||||
fi
|
||||
|
||||
PREFIX_PATH="$2"
|
||||
if [ -z "$PREFIX_PATH" ]; then
|
||||
if [ -z "$2" ]; then
|
||||
usage
|
||||
fi
|
||||
|
||||
mkdir -p "$2"
|
||||
PREFIX_PATH="$(abs_dirname "$2")"
|
||||
|
||||
SEED="$(date "+%Y%m%d%H%M%S").$$"
|
||||
LOG_PATH="/tmp/ruby-build.${SEED}.log"
|
||||
TEMP_PATH="/tmp/ruby-build.${SEED}"
|
||||
|
|
Loading…
Reference in a new issue