diff options
author | Luke Shumaker <lukeshu@sbcglobal.net> | 2015-04-13 15:10:22 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2015-04-13 15:39:51 -0400 |
commit | 3295c5fd9b09fe0af48e11222c41d69f5bae5dbe (patch) | |
tree | 9d86324e241e893433054399dbb29a88705ce9b1 /.config/login.sh | |
parent | 9f5efa128ef0c1177856682659969e2bc8accfd2 (diff) |
login.sh: Do a better job of handling if variables aren't set
Diffstat (limited to '.config/login.sh')
-rw-r--r-- | .config/login.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/.config/login.sh b/.config/login.sh index b2cc80a..538920a 100644 --- a/.config/login.sh +++ b/.config/login.sh @@ -11,6 +11,10 @@ # the default umask is set in /etc/profile; for setting the umask # for ssh logins, install and configure the libpam-umask package. +if [ -z "$HOME" ]; then + eval 'HOME=~' + export HOME +fi for file in "${XDG_CONFIG_HOME:-$HOME/.config}/login.d/"*.sh; do . "$file" done |