diff options
author | Joey Hess <joeyh@joeyh.name> | 2016-02-15 13:10:59 -0400 |
---|---|---|
committer | Joey Hess <joeyh@joeyh.name> | 2016-02-15 13:10:59 -0400 |
commit | 75fc302e526e22c02aafd06773abb21015f4d95d (patch) | |
tree | f496652987b25c2e12518828bf0cdc3dbbc8011e /etckeeper | |
parent | 3faff8b9c428038be8eea30bf7857cfdf0b68200 (diff) |
Set HOME if it's not set, as is the case when using ubuntu's update-manager.
Diffstat (limited to 'etckeeper')
-rwxr-xr-x | etckeeper | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -59,6 +59,11 @@ if [ ! -z "$PUSH_REMOTE" ]; then export PUSH_REMOTE fi +if [ -z "$HOME" ]; then + HOME=~root + export HOME +fi + if [ -z "$1" ]; then usage elif [ "x$1" = "x-h" ] || [ "x$1" = "x--help" ]; then |