From 03fd619614bef8291b7185d03aa6db7d9d928da6 Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Thu, 27 Nov 2014 13:31:44 +0100 Subject: [PATCH] Make env_shasum local in _autoenv_hash_pair --- autoenv.zsh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/autoenv.zsh b/autoenv.zsh index f105c27..034b7fe 100644 --- a/autoenv.zsh +++ b/autoenv.zsh @@ -124,7 +124,8 @@ zmodload -F zsh/stat b:zstat _autoenv_hash_pair() { local env_file=${1:A} - if (( $+2 )); then + local env_shasum + if [[ -n $2 ]]; then env_shasum=$2 else env_shasum=$(shasum $env_file | cut -d' ' -f1)