From 7b27d9e2f957e0b3d6175f263395c9c4b53f9e3d Mon Sep 17 00:00:00 2001 From: Jesse Vincent Date: Fri, 1 Mar 2019 15:23:22 -0800 Subject: [PATCH] default STABLE_TEMP_DIR to $TMPDIR if it's available Signed-off-by: Jesse Vincent --- bin/kaleidoscope-builder | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/kaleidoscope-builder b/bin/kaleidoscope-builder index bc90d8c5..2d993ff5 100755 --- a/bin/kaleidoscope-builder +++ b/bin/kaleidoscope-builder @@ -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}"