generalize a bit; no need to mention my user id directly

This commit is contained in:
Fred Drake 2004-07-13 17:08:10 +00:00
parent 2a510ce119
commit 0751d554c0
1 changed files with 1 additions and 1 deletions

View File

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