Skip to content

Commit

Permalink
$PREFIX_PATH can be specified as a relative path
Browse files Browse the repository at this point in the history
  • Loading branch information
sstephenson committed Sep 6, 2011
1 parent 6a5ee00 commit 20f7b5c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions bin/ruby-build
Expand Up @@ -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}"
Expand Down

0 comments on commit 20f7b5c

Please sign in to comment.