fixes #343 by surrounding $HOME (which can have spaces) with quotations marks

This commit is contained in:
Benjamin Brombach
2015-04-21 16:17:38 +02:00
parent d0d6780a2f
commit 4510c9ee63
13 changed files with 23 additions and 23 deletions

View File

@@ -11,7 +11,7 @@ autoenv_init()
typeset target home _file
typeset -a _files
target=$1
home="$(dirname $HOME)"
home="$(dirname "$HOME")"
_files=( $(
while [[ "$PWD" != "/" && "$PWD" != "$home" ]]