From 2056770d1c45eb0b148fe5fe11866c91544288cb Mon Sep 17 00:00:00 2001 From: 10sr <8.slashes@gmail.com> Date: Tue, 9 Oct 2018 17:00:22 +0900 Subject: [PATCH] Fix TMP var --- profile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/profile b/profile index a18f53e..5acacfc 100755 --- a/profile +++ b/profile @@ -97,11 +97,12 @@ then fi fi -__user_uuid=$(perl -e "use Digest::MD5 qw(md5_hex); print md5_hex('$USER$HOSTNAME')") -expr "$TMP" : ".*${__user_uuid}-tmp" >/dev/null || export TMP="${TMP}/${__user_uuid}-tmp" +__user_md5=$(perl -e "use Digest::MD5 qw(md5_hex); print md5_hex('$USER$HOSTNAME')") +expr "$TMP" : ".*${__user_md5}.*" >/dev/null || export TMP="${TMP}/${__user_md5}-tmp" +test -d "$TMP" || mkdir -p "$TMP" +TMP="$(cd "$TMP" && pwd)"/ export TEMP=$TMP export TMPDIR=$TMP -test -d "$TMP" || mkdir -p "$TMP" if test -d ~/dbx then