mirror of
https://github.com/rbenv/ruby-build.git
synced 2025-01-01 14:44:48 +01:00
Use $TMPDIR instead of /tmp if present. Closes #22.
This commit is contained in:
parent
20f7b5c0e9
commit
b10c5e16b7
1 changed files with 8 additions and 2 deletions
|
@ -191,9 +191,15 @@ fi
|
|||
mkdir -p "$2"
|
||||
PREFIX_PATH="$(abs_dirname "$2")"
|
||||
|
||||
if [ -z "$TMPDIR" ]; then
|
||||
TMP="/tmp"
|
||||
else
|
||||
TMP="${TMPDIR%/}"
|
||||
fi
|
||||
|
||||
SEED="$(date "+%Y%m%d%H%M%S").$$"
|
||||
LOG_PATH="/tmp/ruby-build.${SEED}.log"
|
||||
TEMP_PATH="/tmp/ruby-build.${SEED}"
|
||||
LOG_PATH="${TMP}/ruby-build.${SEED}.log"
|
||||
TEMP_PATH="${TMP}/ruby-build.${SEED}"
|
||||
RUBY_BIN="${PREFIX_PATH}/bin/ruby"
|
||||
CWD="$(pwd)"
|
||||
|
||||
|
|
Loading…
Reference in a new issue