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:
parent
20046b46ba
commit
8a80ba7f02
@ -186,7 +186,7 @@ _autoenv_hash_pair() {
|
|||||||
|
|
||||||
_autoenv_authorized_env_file() {
|
_autoenv_authorized_env_file() {
|
||||||
local env_file=$1
|
local env_file=$1
|
||||||
local pair=$(_autoenv_hash_pair $env_file)
|
local pair="$(_autoenv_hash_pair $env_file)"
|
||||||
test -f $AUTOENV_AUTH_FILE \
|
test -f $AUTOENV_AUTH_FILE \
|
||||||
&& \grep -qF $pair $AUTOENV_AUTH_FILE
|
&& \grep -qF $pair $AUTOENV_AUTH_FILE
|
||||||
}
|
}
|
||||||
@ -286,7 +286,7 @@ _autoenv_get_file_upwards() {
|
|||||||
if [[ $parent_dir == $last ]]; then
|
if [[ $parent_dir == $last ]]; then
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
parent_file="${parent_dir}/${look_for}"
|
local parent_file="${parent_dir}/${look_for}"
|
||||||
|
|
||||||
if [[ -f $parent_file ]]; then
|
if [[ -f $parent_file ]]; then
|
||||||
echo $parent_file
|
echo $parent_file
|
||||||
|
Loading…
Reference in New Issue
Block a user