1
0
mirror of https://github.com/Tarrasch/zsh-autoenv.git synced 2024-11-25 00:10:59 +02:00

Quote assignments to pair/parent_file

This commit is contained in:
Daniel Hahler 2016-03-06 20:26:48 +01:00
parent 20046b46ba
commit 8a80ba7f02

View File

@ -186,7 +186,7 @@ _autoenv_hash_pair() {
_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 @@ _autoenv_get_file_upwards() {
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