Default to /tmp for TMPDIR

Even though it's UNIX standard, it appears that TMPDIR is missing on Linux!
This commit is contained in:
Scott Kyle 2016-06-17 13:17:01 -07:00
parent adc07fdd7f
commit ae549aa32e

View File

@ -36,7 +36,7 @@ die() {
download_core() {
echo "Downloading dependency: $CORE_DIR $REALM_CORE_VERSION"
local TMP_DIR="$TMPDIR/core_bin"
local TMP_DIR="${TMPDIR:-/tmp}/core_bin"
local CORE_TAR="$TMP_DIR/$CORE_DOWNLOAD_FILE"
local CORE_TMP_TAR="$CORE_TAR.tmp"