Browse Source

Fix TMP var

master
10sr 6 years ago
parent
commit
2056770d1c
Signed by: 10sr GPG Key ID: 7BEC428194130EB2
1 changed files with 4 additions and 3 deletions
  1. +4
    -3
      profile

+ 4
- 3
profile View File

@@ -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


Loading…
Cancel
Save