update tmpdir

This commit is contained in:
AJ ONeal 2018-06-28 13:15:06 -06:00
parent 4d6f51f204
commit 39e6c98bed
1 changed files with 3 additions and 1 deletions

View File

@ -108,7 +108,9 @@ else
fi fi
TELEBIT_PATH="$TELEBIT_REAL_PATH" TELEBIT_PATH="$TELEBIT_REAL_PATH"
TELEBIT_TMP="$TELEBIT_REAL_PATH" TELEBIT_TMP="$TELEBIT_REAL_PATH"
my_tmp="$(mktemp -d)" # this works slightly differently between bsd (macOS) and gnu mktemp
# bsd requires the Xes for templates while GNU uses them literally
my_tmp="$(mktemp -d -t telebit.XXXXXXXX)"
#TELEBIT_TMP="$my_tmp/telebit" #TELEBIT_TMP="$my_tmp/telebit"
echo "Installing $my_name to '$TELEBIT_REAL_PATH'" echo "Installing $my_name to '$TELEBIT_REAL_PATH'"