default STABLE_TEMP_DIR to $TMPDIR if it's available

Signed-off-by: Jesse Vincent <jesse@keyboard.io>
pull/591/head
Jesse Vincent 6 years ago
parent a33d797310
commit 7b27d9e2f9

@ -26,7 +26,7 @@ build_version () {
}
build_paths() {
STABLE_TEMP_DIR="${STABLE_TEMP_DIR:-/tmp/kaleidoscope-${USER}}"
STABLE_TEMP_DIR="${STABLE_TEMP_DIR:-${TMPDIR:-/tmp}/kaleidoscope-${USER}}"
BUILD_PATH="${BUILD_PATH:-${STABLE_TEMP_DIR}/sketch/${LIBRARY}}/build"
OUTPUT_PATH="${OUTPUT_PATH:-${STABLE_TEMP_DIR}/sketch/${LIBRARY}}/output"
CCACHE_WRAPPER_DIR="${CCACHE_WRAPPER_DIR:-${STABLE_TEMP_DIR}/ccache/bin}"

Loading…
Cancel
Save