]> Sergey Matveev's repositories - zsh-autoenv.git/blobdiff - tests/_autoenv_utils.t
Create path to non-existing auth file (#49)
[zsh-autoenv.git] / tests / _autoenv_utils.t
index ee5b306b43f57f3ef3e5ea57356b04a3843d7c04..06025b67827c3562296052ec21e0e004099e298b 100644 (file)
@@ -21,7 +21,7 @@ Tests for _autoenv_authorize. {{{
 Auth file is empty.
 
   $ cd ../..
-  $ cat $AUTOENV_AUTH_FILE
+  $ ! [[ -f "$AUTOENV_AUTH_FILE" ]] || cat $AUTOENV_AUTH_FILE
 
 Failed authorization should keep the auth file empty.