mirror of https://github.com/python/cpython.git
generalize a bit; no need to mention my user id directly
This commit is contained in:
parent
2a510ce119
commit
0751d554c0
|
@ -7,7 +7,7 @@
|
|||
# and removes it when done.
|
||||
|
||||
if [ -z "$HOME" ] ; then
|
||||
HOME=`grep fdrake /etc/passwd | sed 's|^.*:\([^:]*\):[^:]*$|\1|'`
|
||||
HOME=`grep "$LOGNAME" /etc/passwd | sed 's|^.*:\([^:]*\):[^:]*$|\1|'`
|
||||
export HOME
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in New Issue