mirror of
https://github.com/Tarrasch/zsh-autoenv.git
synced 2024-12-22 19:00:15 +02:00
Make env_shasum local in _autoenv_hash_pair
This commit is contained in:
parent
0b941261b7
commit
03fd619614
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user