mirror of
https://github.com/Tarrasch/zsh-autoenv.git
synced 2024-11-22 07:20:59 +02:00
tests: test_autoenv_add_to_env: create auth file parent dir (#59)
This is required when running single test files, e.g. only cwd.t.
This commit is contained in:
parent
dfb5648505
commit
41e0daa35f
@ -30,6 +30,7 @@ fi
|
|||||||
|
|
||||||
# Add file ($1), version ($2), and optional hash ($3) to authentication file.
|
# Add file ($1), version ($2), and optional hash ($3) to authentication file.
|
||||||
test_autoenv_add_to_env() {
|
test_autoenv_add_to_env() {
|
||||||
|
[[ -d ${AUTOENV_AUTH_FILE:h} ]] || mkdir -p ${AUTOENV_AUTH_FILE:h}
|
||||||
_autoenv_hash_pair $1 1 ${2:-} >>| $AUTOENV_AUTH_FILE
|
_autoenv_hash_pair $1 1 ${2:-} >>| $AUTOENV_AUTH_FILE
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user