mirror of
https://github.com/Llewellynvdm/Tomb.git
synced 2025-02-02 03:48:27 +00:00
Finished fixing #164
This commit is contained in:
parent
9eaaa68452
commit
fb686db8eb
2
tomb
2
tomb
@ -192,7 +192,7 @@ _whoami() {
|
||||
}
|
||||
|
||||
# Force HOME to _USER's HOME if necessary
|
||||
local home="$(awk -F: "/^$_USER/ { print \$6 }" /etc/passwd 2>/dev/null)"
|
||||
local home=$(awk -F: "/^$_USER:/ { print \$6 }" /etc/passwd 2>/dev/null)
|
||||
[[ $home == $HOME ]] || {
|
||||
_verbose "Updating HOME to match user's: ::1 home:: (was ::2 HOME::)" \
|
||||
$home $HOME
|
||||
|
Loading…
x
Reference in New Issue
Block a user