]> Sergey Matveev's repositories - zsh-autoenv.git/blobdiff - tests/setup.zsh
Automatically upgrade v1 hashes (SHA-1) to v2 (`cksum`) (#55)
[zsh-autoenv.git] / tests / setup.zsh
index 78eb02e3a4c6a55dc82908e34184f13fd66b14c1..9e789ec3827d2665e4785daf8524bf5cf9f21eec 100644 (file)
@@ -28,9 +28,9 @@ if [[ -f $AUTOENV_AUTH_FILE ]]; then
   echo -n >| $AUTOENV_AUTH_FILE
 fi
 
-# Add file $1 (with optional hash $2) to authentication file.
+# Add file ($1), version ($2), and optional hash ($3) to authentication file.
 test_autoenv_add_to_env() {
-  _autoenv_hash_pair $1 ${2:-} >>| $AUTOENV_AUTH_FILE
+  _autoenv_hash_pair $1 ${2:-} >>| $AUTOENV_AUTH_FILE
 }
 
 # Add enter and leave env files to authentication file.