mirror of
https://github.com/Tarrasch/zsh-autoenv.git
synced 2024-11-26 00:40:59 +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() {
|
_autoenv_hash_pair() {
|
||||||
local env_file=${1:A}
|
local env_file=${1:A}
|
||||||
if (( $+2 )); then
|
local env_shasum
|
||||||
|
if [[ -n $2 ]]; then
|
||||||
env_shasum=$2
|
env_shasum=$2
|
||||||
else
|
else
|
||||||
env_shasum=$(shasum $env_file | cut -d' ' -f1)
|
env_shasum=$(shasum $env_file | cut -d' ' -f1)
|
||||||
|
Loading…
Reference in New Issue
Block a user