]> Sergey Matveev's repositories - zsh-autoenv.git/blobdiff - tests/setup.sh
tests: setup for multiple ZDOTDIRs, fix/add "setopt clobber"
[zsh-autoenv.git] / tests / setup.sh
index 5c6ae9eb6173c7eb31c9145e0b1f0fa357fb17b9..557b9e77cb5f471f13a57ef5206b09e099fa7ad1 100644 (file)
@@ -8,11 +8,11 @@
 [[ $AUTOENV_ENV_FILENAME[0,4] == '/tmp' ]] || return 1
 
 # Reset any authentication.
-echo -n > $AUTOENV_ENV_FILENAME
+echo -n >| $AUTOENV_ENV_FILENAME
 
 # Add file $1 (with optional hash $2) to authentication file.
 test_autoenv_add_to_env() {
-  _autoenv_hash_pair $1 ${2:-} >> $AUTOENV_ENV_FILENAME
+  _autoenv_hash_pair $1 ${2:-} >>| $AUTOENV_ENV_FILENAME
 }
 
 # Add enter and leave env files to authentication file.