X-Git-Url: http://www.git.stargrave.org/?p=zsh-autoenv.git;a=blobdiff_plain;f=tests%2Fsetup.zsh;fp=tests%2Fsetup.zsh;h=02f41b3790129b13cfd974fa7a19fbd06c06851a;hp=0bbdbafa74ad8d9b7572b6b6bbae141d1512cef0;hb=2c8cfbcea8e7286649840d7ec98d7e9d5e1d45a0;hpb=0bb85014e6bb4415ec19dd13ef7ae361a9f1e5b9 diff --git a/tests/setup.zsh b/tests/setup.zsh index 0bbdbaf..02f41b3 100644 --- a/tests/setup.zsh +++ b/tests/setup.zsh @@ -28,6 +28,7 @@ fi # Add file ($1), version ($2), and optional hash ($3) to authentication file. test_autoenv_add_to_env() { + emulate -L zsh [[ -d ${AUTOENV_AUTH_FILE:h} ]] || mkdir -p ${AUTOENV_AUTH_FILE:h} _autoenv_deauthorize $1 {