Browse Source

Use md5 hex for tmp directory

master
10sr 6 years ago
parent
commit
0c20697581
Signed by: 10sr GPG Key ID: 7BEC428194130EB2
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      profile

+ 2
- 1
profile View File

@@ -97,7 +97,8 @@ then
fi
fi

expr "$TMP" : ".*$USER-tmp" >/dev/null || export TMP="${TMP}/${USER}-tmp"
__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"
export TEMP=$TMP
export TMPDIR=$TMP
test -d "$TMP" || mkdir -p "$TMP"


Loading…
Cancel
Save