commit fb686db8ebd53f13cdd421b809b9500421ce78f8
parent 9eaaa684520391f12a74de9dc635ef1e81c1feba
Author: gdrooid <gdrooid@openmailbox.org>
Date: Mon, 24 Nov 2014 17:02:30 +0100
Finished fixing #164
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tomb b/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