mirror of
https://github.com/python/cpython.git
synced 2025-07-23 03:05:38 +00:00
generalize a bit; no need to mention my user id directly
This commit is contained in:
parent
2a510ce119
commit
0751d554c0
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue