1
0
mirror of https://github.com/Tarrasch/zsh-autoenv.git synced 2024-06-26 18:10:12 +03:00

Make env_shasum local in _autoenv_hash_pair

This commit is contained in:
Daniel Hahler 2014-11-27 13:31:44 +01:00
parent 0b941261b7
commit 03fd619614

View File

@ -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)