autoenv.zsh | 4 ++-- diff --git a/autoenv.zsh b/autoenv.zsh index 7b6d8da04038632136792d4924f933915e1ea603..fd73a838bff60136d335e2a22c628ca36048ae22 100644 --- a/autoenv.zsh +++ b/autoenv.zsh @@ -186,7 +186,7 @@ } _autoenv_authorized_env_file() { local env_file=$1 - local pair=$(_autoenv_hash_pair $env_file) + local pair="$(_autoenv_hash_pair $env_file)" test -f $AUTOENV_AUTH_FILE \ && \grep -qF $pair $AUTOENV_AUTH_FILE } @@ -286,7 +286,7 @@ parent_dir=${parent_dir:A} if [[ $parent_dir == $last ]]; then break fi - parent_file="${parent_dir}/${look_for}" + local parent_file="${parent_dir}/${look_for}" if [[ -f $parent_file ]]; then echo $parent_file