This website works better with JavaScript.
Home
Explore
Help
Sign In
10sr
/
dotfiles-mirror
mirror of
https://github.com/10sr/dotfiles.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
0
Wiki
Activity
Browse Source
Use md5 hex for tmp directory
master
10sr
6 years ago
parent
eb5f69acb2
commit
0c20697581
Signed by:
10sr
GPG Key ID:
7BEC428194130EB2
1 changed files
with
2 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+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"
Write
Preview
Loading…
Cancel
Save