diff --git a/bin/ruby-build b/bin/ruby-build index 167a6949..16a5a92a 100755 --- a/bin/ruby-build +++ b/bin/ruby-build @@ -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}"